chsh: Use _allowed_users instead of plain compgen -u.

This commit is contained in:
Ville Skyttä 2011-04-27 18:33:12 +03:00
parent 9dd125ee46
commit 3a39ac6676
3 changed files with 4 additions and 4 deletions

View File

@ -2,8 +2,8 @@ bash-completion (2.x)
[ Ville Skyttä ]
* Add pxz and reptyr completions.
* Improve aspell, gendiff, pack200, rsync, screen, smartctl, tar, unpack200,
xz, xzdec, and generic parsed and long option completions.
* Improve aspell, chsh, gendiff, pack200, rsync, screen, smartctl, tar,
unpack200, xz, xzdec, and generic parsed and long option completions.
* Try harder to find the correct perl executable to run the perl helper with.
* Drop rpm query support for rpm < 4.1.
* Split rpm and rpmbuild completions and improve them both.

View File

@ -21,7 +21,7 @@ _chsh()
COMPREPLY=( $( compgen -W '--shell --list-shells --help --version' \
-- "$cur" ) )
else
COMPREPLY=( $( compgen -u -- "$cur" ) )
_allowed_users
fi
return 0

View File

@ -17,7 +17,7 @@ assert_complete_any "chsh -s "
sync_after_int
assert_complete [exec bash -c "compgen -A user"] "chsh "
assert_complete_any "chsh "
sync_after_int