The following commit has been merged in the master branch:
commit fbf0bd30592df13097d0c4f19020e33757f531f6
Author: Ville Skyttä <[email protected]>
Date: Sun May 15 20:10:37 2011 +0300
chsh: Use _parse_usage.
diff --git a/completions/chsh b/completions/chsh
index 63f8198..c19e436 100644
--- a/completions/chsh
+++ b/completions/chsh
@@ -17,9 +17,8 @@ _chsh()
;;
esac
- if [[ "$cur" == -* && "$( uname -s )" == @(Linux|GNU|GNU/*) ]]; then
- COMPREPLY=( $( compgen -W '--shell --list-shells --help --version' \
- -- "$cur" ) )
+ if [[ "$cur" == -* ]]; then
+ COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
else
_allowed_users
fi
--
bash-completion
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits