[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-116-g095b5a0

Ville Skyttä ville.skytta at iki.fi
Mon Apr 25 08:44:28 UTC 2011


The following commit has been merged in the master branch:
commit 095b5a02d2211c2bfc9268c60f9268d6da47a7ba
Author: Ville Skyttä <ville.skytta at iki.fi>
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



More information about the Bash-completion-commits mailing list