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:
Simon Marchi 2020-04-28 14:29:39 -04:00
parent 2b2fbab8ef
commit a55e30b51b
2 changed files with 5 additions and 1 deletions

View File

@ -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>
* NEWS: Update.

View File

@ -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>