chsh: Use _allowed_users instead of plain compgen -u.
This commit is contained in:
parent
9dd125ee46
commit
3a39ac6676
4
CHANGES
4
CHANGES
@ -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.
|
||||
|
@ -21,7 +21,7 @@ _chsh()
|
||||
COMPREPLY=( $( compgen -W '--shell --list-shells --help --version' \
|
||||
-- "$cur" ) )
|
||||
else
|
||||
COMPREPLY=( $( compgen -u -- "$cur" ) )
|
||||
_allowed_users
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user