[PATCH 0/7] Make gdbarch.sh shellcheck-clean

Simon Marchi
2020-04-28T21:47:05Z

I ran shellcheck on gdbarch.sh and addressed all the warnings. It
didn't catch anything serious, but I think it's good to have it clean
anyway, so we can catch potential problems in future changes we do to
this file.

Simon Marchi (7):
gdb: fix shellcheck warnings SC2059 (variables in printf format
string) in gdbarch.sh
gdb: fix shellcheck warnings SC2086 (missing double quotes) in
gdbarch.sh
gdb: fix shellcheck warnings SC2006 (use $() instead of ``) in
gdbarch.sh
gdb: fix shellcheck warnings SC2166 (&& and !! instead of -a and -o)
in gdbarch.sh
gdb: fix shellcheck warnings SC2034 (unused variable) in gdbarch.sh
gdb: fix shellcheck warnings SC2154 (referenced but not assigned) in
gdbarch.sh
gdb: silence shellcheck warning SC2162 (use read -r) in gdbarch.sh

gdb/gdbarch.sh | 178 ++++++++++++++++++++++---------------------------
1 file changed, 81 insertions(+), 97 deletions(-)

--
2.26.2