[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 08e746ea109366cd1ba6b52cb02e95c094726876

Ville Skyttä ville.skytta at iki.fi
Mon Jan 18 17:29:16 UTC 2010


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



More information about the Bash-completion-commits mailing list