forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2020-04-28 Simon Marchi <simon.marchi@efficios.com>
|
||||||
|
|
||||||
|
* syscalls/update-freebsd.sh: Add double quotes.
|
||||||
|
|
||||||
2020-04-28 Tom Tromey <tom@tromey.com>
|
2020-04-28 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* NEWS: Update.
|
* NEWS: Update.
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ awk '
|
|||||||
}
|
}
|
||||||
/\/\* [0-9]* is freebsd[0-9]* [a-z_]* \*\// {
|
/\/\* [0-9]* is freebsd[0-9]* [a-z_]* \*\// {
|
||||||
printf " <syscall name=\"%s_%s\" number=\"%s\" alias=\"%s\"/>\n", $4, $5, $2, $5
|
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
|
cat >> freebsd.xml.tmp <<EOF
|
||||||
</syscalls_info>
|
</syscalls_info>
|
||||||
|
|||||||
Reference in New Issue
Block a user