From 05ba7bdc0392d6565c97b8891675cfc8ebf4f88a Mon Sep 17 00:00:00 2001 From: William Melody Date: Wed, 1 Mar 2017 19:59:01 -0800 Subject: [PATCH] Quote argument to `unset`. ShellCheck SC2184: Quote arguments to unset so they're not glob expanded. https://github.com/koalaman/shellcheck/wiki/SC2184 --- hosts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts b/hosts index 7b8be39..5895889 100755 --- a/hosts +++ b/hosts @@ -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" \