Skip to content

Commit ef25163

Browse files
yedayakscop
authored andcommitted
fix(ip): Quote all instantiation of ip as "$1"
1 parent 222230e commit ef25163

File tree

1 file changed

+3
-3
lines changed
  • completions

1 file changed

+3
-3
lines changed

completions/ip

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ _comp_cmd_ip()
7979
*)
8080
_comp_compgen_split -- "help $(
8181
{
82-
$1 -c=never help || $1 help
82+
"$1" -c=never help || "$1" help
8383
} 2>&1 | command sed -e \
8484
'/OBJECT := /,/}/!d' -e \
8585
's/.*{//' -e \
@@ -219,14 +219,14 @@ _comp_cmd_ip()
219219
if [[ $prev == via ]]; then
220220
_comp_compgen_split -- "$(
221221
{
222-
$1 -c=never r 2>/dev/null || $1 r
222+
"$1" -c=never r 2>/dev/null || "$1" r
223223
} | command sed -ne \
224224
's/.*via \([0-9.]*\).*/\1/p'
225225
)"
226226
elif [[ $prev == "$subcmd" ]]; then
227227
_comp_compgen_split -- "table default $(
228228
{
229-
$1 -c=never r 2>/dev/null || $1 r
229+
"$1" -c=never r 2>/dev/null || "$1" r
230230
} | cut -d ' ' -f 1
231231
)"
232232
elif [[ $prev == dev ]]; then

0 commit comments

Comments
 (0)