[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-107-g08a2264

Igor Murzov e-mail at date.by
Tue Dec 20 16:10:29 UTC 2011


The following commit has been merged in the master branch:
commit 3be0b2658178c3d8d17f16c0a42f2fc08a4086f3
Author: Igor Murzov <e-mail at date.by>
Date:   Tue Dec 20 00:09:02 2011 +0400

    gcc: Don't allow "[]<>" in options list.

diff --git a/completions/gcc b/completions/gcc
index 48ee8e4..a1f8c0a 100644
--- a/completions/gcc
+++ b/completions/gcc
@@ -40,8 +40,9 @@ _gcc()
         # for FORTRAN/Java it's an error
         COMPREPLY=( $( compgen -W "$( $cc --help 2>/dev/null | \
            tr '\t' ' ' | \
-           sed -e '/^  *-/!d' -e 's/ *-\([^ ]*\).*/-\1/' | \
+           sed -e '/^  *-/!d' -e 's/ *-\([^][ <>]*\).*/-\1/' | \
            sort -u )" -- "$cur" ) )
+        [[ $COMPREPLY == *= ]] && compopt -o nospace
     else
         _filedir
     fi

-- 
bash-completion



More information about the Bash-completion-commits mailing list