5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
9 COMPREPLY=( $(compgen -W "uid" -- $cur) )
13 COMPREPLY=( $(compgen -W "gid" -- $cur) )
18 PIDS=$(cd /proc && echo [0-9]*)
19 COMPREPLY=( $(compgen -W "$PIDS" -- $cur) )
22 '-h'|'--help'|'-V'|'--version')
28 # FIXME: --root and --wd should use get only
29 # directories as compgen output. If $cur is
30 # overwrote the same way as below in case segment
31 # for $prev the command-line will get mangled.
47 --preserve-credentials
54 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
60 COMPREPLY=( $(compgen -f -- $cur) )
63 complete -F _nsenter_module nsenter