diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-04-28 14:29:39 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-04-28 14:29:39 -0400 |
commit | a55e30b51bc6227d8d41f707654d0a5620978dcf (patch) | |
tree | b6b37e540fe42aca6cccd4029b8664823254e94f /gdb/syscalls | |
parent | 2b2fbab8eff221506975a7c8d00ea92d47de915e (diff) | |
download | fsf-binutils-gdb-a55e30b51bc6227d8d41f707654d0a5620978dcf.zip fsf-binutils-gdb-a55e30b51bc6227d8d41f707654d0a5620978dcf.tar.gz fsf-binutils-gdb-a55e30b51bc6227d8d41f707654d0a5620978dcf.tar.bz2 |
gdb: fix shellcheck warning in update-freebsd.sh
shellcheck reports:
In update-freebsd.sh line 72:
}' $1 >> freebsd.xml.tmp
^-- SC2086: Double quote to prevent globbing and word splitting.
Did you mean:
}' "$1" >> freebsd.xml.tmp
For more information:
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
Add double quotes to fix it.
gdb/ChangeLog:
* syscalls/update-freebsd.sh: Add double quotes.
Diffstat (limited to 'gdb/syscalls')
-rwxr-xr-x | gdb/syscalls/update-freebsd.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/syscalls/update-freebsd.sh b/gdb/syscalls/update-freebsd.sh index 7b177f3..5d96026 100755 --- a/gdb/syscalls/update-freebsd.sh +++ b/gdb/syscalls/update-freebsd.sh @@ -69,7 +69,7 @@ awk ' } /\/\* [0-9]* is freebsd[0-9]* [a-z_]* \*\// { printf " <syscall name=\"%s_%s\" number=\"%s\" alias=\"%s\"/>\n", $4, $5, $2, $5 -}' $1 >> freebsd.xml.tmp +}' "$1" >> freebsd.xml.tmp cat >> freebsd.xml.tmp <<EOF </syscalls_info> |