The following commit has been merged in the master branch:
commit 43681ffac6c73d043a2fa981f9c255040e801775
Author: Ville Skyttä <[email protected]>
Date: Mon Jan 18 19:09:02 2010 +0200
Make _parse_help() look at stderr too.
diff --git a/bash_completion b/bash_completion
index 6a86484..028da88 100644
--- a/bash_completion
+++ b/bash_completion
@@ -528,7 +528,7 @@ _split_longopt()
_parse_help() {
local cmd
cmd=$1
- $cmd --help | command grep -- "^[[:space:]]*-" | tr "," " " | \
+ $cmd --help 2>&1 | command grep -- "^[[:space:]]*-" | tr "," " " | \
awk '{print $1; if ($2 ~ /-.*/) { print $2 } }' | sed -e "s:=.*::g"
}
--
bash-completion
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits