diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-02-06 15:13:45 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-02-06 15:13:45 +0200 |
commit | 558920aecbce226d7eb8aea8bf1c9c2290ec3f70 (patch) | |
tree | 8432d42174219b13c7815a096eb51fcbcbda12bf | |
parent | 1b0e17c2a3a4831ba52435c360b34b5e1dca10c4 (diff) | |
download | bash-completion-558920aecbce226d7eb8aea8bf1c9c2290ec3f70.tar.gz |
Truncate _parse_help() output options on <.
-rw-r--r-- | bash_completion | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash_completion b/bash_completion index 9d997cb0..98fe3393 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 |