The following commit has been merged in the master branch:
commit 92ff96417d8e30edc3ca93664424741423844252
Author: Ville Skyttä <[email protected]>
Date: Wed Apr 27 22:10:40 2011 +0300
_parse_help: Fix handling of tildes and escaped chars in command.
diff --git a/bash_completion b/bash_completion
index 9a75b9e..4517977 100644
--- a/bash_completion
+++ b/bash_completion
@@ -748,7 +748,8 @@ _init_completion()
_parse_help()
{
# Print first found long option, or first short if not found.
- $1 ${2:---help} 2>&1 | awk \
+ eval local cmd=$1
+ "$cmd" ${2:---help} 2>&1 | awk \
'{
if ($0 !~ /^[ \t]*-/) { next }
gsub("[,/]", " ");
--
bash-completion
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits