Quote argument to `unset`.

ShellCheck SC2184: Quote arguments to unset so they're not glob expanded.

https://github.com/koalaman/shellcheck/wiki/SC2184
This commit is contained in:
William Melody 2017-03-01 19:59:01 -08:00
parent 404ee19742
commit 05ba7bdc03
1 changed files with 1 additions and 1 deletions

2
hosts
View File

@ -265,7 +265,7 @@ done
# resulting slice is treated as a quoted string and doesn't easily get coaxed
# into a new array.
_COMMAND_PARAMETERS=(${_COMMAND_ARGV[*]})
unset _COMMAND_PARAMETERS[0]
unset "_COMMAND_PARAMETERS[0]"
_debug printf \
"\${_CMD}: %s\n" \