diff options
Diffstat (limited to 'completions/groupmod')
-rw-r--r-- | completions/groupmod | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/groupmod b/completions/groupmod index 2ac62ea3..5516d31c 100644 --- a/completions/groupmod +++ b/completions/groupmod @@ -9,21 +9,21 @@ _groupmod() # with -g/--gid case $prev in - --gid|--help|--new-name|--password|-!(-*)[ghnp]) + --gid | --help | --new-name | --password | -!(-*)[ghnp]) return ;; esac $split && return - if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") ) - [[ $COMPREPLY == *= ]] && compopt -o nospace + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur")) + [[ ${COMPREPLY-} == *= ]] && compopt -o nospace return fi - COMPREPLY=( $(compgen -g -- "$cur") ) + COMPREPLY=($(compgen -g -- "$cur")) } && -complete -F _groupmod groupmod + complete -F _groupmod groupmod # ex: filetype=sh |