The following commit has been merged in the master branch:
commit 288c1eb3c1ce0337ceea10da9ce915601990bd9a
Author: Ville Skyttä <[email protected]>
Date: Mon May 2 10:40:36 2011 +0300
_parse_help: Fix handling of commands with paths.
Regression from commit a614028a9b7e22b76f609a49dc7cfc2b8ad0abcd, need to
eval cmd before setting IFS to avoid it being split.
diff --git a/bash_completion b/bash_completion
index 8ea9685..591e1da 100644
--- a/bash_completion
+++ b/bash_completion
@@ -753,8 +753,8 @@ _init_completion()
#
_parse_help()
{
- local line i option option2 IFS=$' \t\n,/|'
eval local cmd=$1
+ local line i option option2 IFS=$' \t\n,/|'
"$cmd" ${2:---help} 2>&1 | while read line; do
[[ $line == *([ $'\t'])-* ]] || continue
--
bash-completion
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits