Skip to content

Commit

Permalink
fix(ip): Quote all instantiation of ip as "$1"
Browse files Browse the repository at this point in the history
  • Loading branch information
yedayak authored and scop committed Apr 1, 2024
1 parent 222230e commit ef25163
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions completions/ip
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ _comp_cmd_ip()
*)
_comp_compgen_split -- "help $(
{
$1 -c=never help || $1 help
"$1" -c=never help || "$1" help
} 2>&1 | command sed -e \
'/OBJECT := /,/}/!d' -e \
's/.*{//' -e \
Expand Down Expand Up @@ -219,14 +219,14 @@ _comp_cmd_ip()
if [[ $prev == via ]]; then
_comp_compgen_split -- "$(
{
$1 -c=never r 2>/dev/null || $1 r
"$1" -c=never r 2>/dev/null || "$1" r
} | command sed -ne \
's/.*via \([0-9.]*\).*/\1/p'
)"
elif [[ $prev == "$subcmd" ]]; then
_comp_compgen_split -- "table default $(
{
$1 -c=never r 2>/dev/null || $1 r
"$1" -c=never r 2>/dev/null || "$1" r
} | cut -d ' ' -f 1
)"
elif [[ $prev == dev ]]; then
Expand Down

0 comments on commit ef25163

Please sign in to comment.