2011-11-01 22:14:45 +02:00
|
|
|
# newgrp(1) completion -*- shell-script -*-
|
2011-10-12 23:01:10 +03:00
|
|
|
|
cal,chfn,chsh,dmesg,eject,hexdump,look,newgrp,renice,runuser,su,write: Deprecate on Linux in favor of util-linux ones (Debian: #737672)
2014-02-08 19:34:02 +02:00
|
|
|
# Use of this file is deprecated on Linux. Upstream completion is
|
|
|
|
# available in util-linux >= 2.23, use that instead.
|
|
|
|
|
2011-10-12 23:01:10 +03:00
|
|
|
_newgrp()
|
|
|
|
{
|
|
|
|
local cur prev words cword
|
|
|
|
_init_completion || return
|
|
|
|
|
|
|
|
if [[ "$cur" == "-" ]]; then
|
|
|
|
COMPREPLY=( - )
|
|
|
|
else
|
|
|
|
_allowed_groups "$cur"
|
|
|
|
fi
|
|
|
|
} &&
|
|
|
|
complete -F _newgrp newgrp
|
|
|
|
|
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|