[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 5b54c41de55300fb7c28b435b0e7a595ab1cd7d9
Ville Skyttä
ville.skytta at iki.fi
Tue Nov 3 20:49:39 UTC 2009
The following commit has been merged in the master branch:
commit c820944d2e5e70b3f5da8c8a10779dea8a6b7d4b
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Tue Nov 3 22:28:10 2009 +0200
Be stricter when finding long options in _longopt.
diff --git a/bash_completion b/bash_completion
index eb14cf7..8692c76 100644
--- a/bash_completion
+++ b/bash_completion
@@ -1525,8 +1525,8 @@ _longopt()
fi
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W "$( $1 --help 2>&1 | sed -e '/--/!d' \
- -e 's/.*\(--[-A-Za-z0-9]\{1,\}\).*/\1/' | sort -u )" \
+ COMPREPLY=( $( compgen -W "$( $1 --help 2>&1 | \
+ sed -ne 's/.*\(--[-A-Za-z0-9]\{1,\}\).*/\1/p' | sort -u )" \
-- "$cur" ) )
elif [[ "$1" == rmdir ]]; then
_filedir -d
--
bash-completion
More information about the Bash-completion-commits
mailing list