The following commit has been merged in the master branch:
commit 558920aecbce226d7eb8aea8bf1c9c2290ec3f70
Author: Ville Skyttä <[email protected]>
Date: Sun Feb 6 15:13:45 2011 +0200
Truncate _parse_help() output options on <.
diff --git a/bash_completion b/bash_completion
index 9d997cb..98fe339 100644
--- a/bash_completion
+++ b/bash_completion
@@ -688,7 +688,7 @@ _split_longopt()
#
_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