gnokii: Fix completions of options that are prefixes for others
e.g. --getsms, --getsecurityscodemaster
parent
ca138d05db
commit
89303303bd
|
@ -226,7 +226,7 @@ _gnokii()
|
|||
|
||||
# don't provide main command completions if one is
|
||||
# already on the command line
|
||||
[[ $COMP_LINE =~ $( tr ' ' '|'<<<$main_cmd ) ]] && return
|
||||
[[ $COMP_LINE =~ $( tr ' ' '\b|'<<<$main_cmd ) ]] && return
|
||||
|
||||
COMPREPLY=( $( compgen -W "$all_cmd" -- "$cur" ) )
|
||||
} &&
|
||||
|
|
Loading…
Reference in New Issue