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

Ville Skyttä ville.skytta at iki.fi
Sun Feb 6 13:15:33 UTC 2011


The following commit has been merged in the master branch:
commit 558920aecbce226d7eb8aea8bf1c9c2290ec3f70
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Feb 6 15:13:45 2011 +0200

    Truncate _parse_help() output options on <.

diff --git a/bash_completion b/bash_completion
index 9d997cb..98fe339 100644
--- a/bash_completion
+++ b/bash_completion
@@ -688,7 +688,7 @@ _split_longopt()
 #
 _parse_help() {
     $1 ${2:---help} 2>&1 | sed -e '/^[[:space:]]*-/!d' -e 's|[,/]| |g' | \
-        awk '{ print $1; if ($2 ~ /^-/) { print $2 } }' | sed -e 's|=.*||'
+        awk '{ print $1; if ($2 ~ /^-/) { print $2 } }' | sed -e 's|[<=].*||'
 }
 
 # This function completes on signal names

-- 
bash-completion



More information about the Bash-completion-commits mailing list