[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-151-g1709686

Ville Skyttä ville.skytta at iki.fi
Thu Apr 28 18:45:54 UTC 2011


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



More information about the Bash-completion-commits mailing list