[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-171-gc875723
Ville Skyttä
ville.skytta at iki.fi
Mon May 2 09:55:22 UTC 2011
The following commit has been merged in the master branch:
commit 288c1eb3c1ce0337ceea10da9ce915601990bd9a
Author: Ville Skyttä <ville.skytta at iki.fi>
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
More information about the Bash-completion-commits
mailing list