[Bash-completion-commits] [bash-completion] 05/05: gnokii: Fix completions of options that are prefixes for others

Ville Skyttä scop-guest at moszumanska.debian.org
Mon May 11 09:22:54 UTC 2015


This is an automated email from the git hooks/post-receive script.

scop-guest pushed a commit to branch master
in repository bash-completion.

commit 89303303bd28d2c0b9d1e7e69e607ca2cf650760
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Mon May 11 12:21:49 2015 +0300

    gnokii: Fix completions of options that are prefixes for others
    
    e.g. --getsms, --getsecurityscode
---
 completions/gnokii | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git



More information about the Bash-completion-commits mailing list