diff --git a/completions/gnokii b/completions/gnokii index 8718423a..f63979cc 100644 --- a/completions/gnokii +++ b/completions/gnokii @@ -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" ) ) } &&