The following commit has been merged in the master branch:
commit c820944d2e5e70b3f5da8c8a10779dea8a6b7d4b
Author: Ville Skyttä <[email protected]>
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
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits