diff options
Diffstat (limited to 'completions/route')
-rw-r--r-- | completions/route | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/completions/route b/completions/route index 14fc2599..40d4f490 100644 --- a/completions/route +++ b/completions/route @@ -7,7 +7,7 @@ _route() local cur prev words cword _init_completion || return - if [ "$prev" = dev ]; then + if [[ $prev == dev ]]; then _available_interfaces return 0 fi @@ -18,7 +18,7 @@ _route() dyn reinstate dev default gw; do found=false for (( i=1; i < ${#words[@]}-1; i++ )); do - [ "${words[i]}" = "$opt" ] && found=true && break + [[ ${words[i]} == $opt ]] && found=true && break done $found || COMPREPLY[${#COMPREPLY[@]}]="$opt" done |