The following commit has been merged in the master branch:
commit 095b5a02d2211c2bfc9268c60f9268d6da47a7ba
Author: Ville Skyttä <[email protected]>
Date:   Mon Apr 25 11:43:57 2011 +0300

    Fix --foo[=bar] parsing in _parse_help().

diff --git a/bash_completion b/bash_completion
index 3542397..5d657b3 100644
--- a/bash_completion
+++ b/bash_completion
@@ -748,7 +748,7 @@ _init_completion()
 _parse_help()
 {
     $1 ${2:---help} 2>&1 | sed -e '/^[[:space:]]*-/!d' -e 's|[,/]| |g' | \
-        awk '{ print $1; if ($2 ~ /^-/) { print $2 } }' | sed -e 's|[<=].*||'
+        awk '{ print $1; if ($2 ~ /^-/) { print $2 } }' | sed -e 's|[<=[].*||'
 }
 
 # This function completes on signal names

-- 
bash-completion

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits

Reply via email to