diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-04-29 20:35:34 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-04-29 20:35:34 -0400 |
commit | a6fc5ffc502238fcc5bce98868f4f353cc5d47d1 (patch) | |
tree | c22fa7d5424462a68f23c6a4ef2ff84f5d697125 /gdb/ChangeLog | |
parent | 8d113d130ef87c982896412f89154a5fa5afc9ac (diff) | |
download | gdb-a6fc5ffc502238fcc5bce98868f4f353cc5d47d1.zip gdb-a6fc5ffc502238fcc5bce98868f4f353cc5d47d1.tar.gz gdb-a6fc5ffc502238fcc5bce98868f4f353cc5d47d1.tar.bz2 |
gdb: fix shellcheck warnings SC2086 (missing double quotes) in gdbarch.sh
Fix all instances of:
In gdbarch.sh line 31:
if test ! -r ${file}
^-----^ SC2086: Double quote to prevent globbing and word splitting.
Did you mean:
if test ! -r "${file}"
Note that some instances of these are in text that is eval'ed. I'm
pretty sure that things could go wrong during the eval too, but that's
not something shellcheck can check.
gdb/ChangeLog:
* gdbarch.sh: Use double quotes around variables.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b692823..eefeac4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2020-04-29 Simon Marchi <simon.marchi@efficios.com> + * gdbarch.sh: Use double quotes around variables. + +2020-04-29 Simon Marchi <simon.marchi@efficios.com> + * gdbarch.sh: Use %s with printf, instead of variables in the format string. |