[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-305-geefc69d
Ville Skyttä
ville.skytta at iki.fi
Mon May 16 15:58:55 UTC 2011
The following commit has been merged in the master branch:
commit fbf0bd30592df13097d0c4f19020e33757f531f6
Author: Ville Skyttä <ville.skytta at iki.fi>
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
More information about the Bash-completion-commits
mailing list