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.
+2020-04-28 Simon Marchi <simon.marchi@efficios.com>
+
+ * syscalls/update-freebsd.sh: Add double quotes.
+
2020-04-28 Tom Tromey <tom@tromey.com>
* NEWS: Update.
}
/\/\* [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>