5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
9 COMPREPLY=( $(compgen -u -- $cur) )
12 '-g'|'--group'|'-G'|'--supp-group')
13 COMPREPLY=( $(compgen -g -- $cur) )
17 COMPREPLY=( $(compgen -W "$(chsh -l)" -- $cur) )
20 '-h'|'--help'|'-V'|'--version')
27 --preserve-environment
28 --whitelist-environment
38 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
44 COMPREPLY=( $(compgen -u -- $cur) )
47 complete -F _su_module su
48 complete -F _su_module runuser