summaryrefslogtreecommitdiff
path: root/completions/gpasswd
diff options
context:
space:
mode:
Diffstat (limited to 'completions/gpasswd')
-rw-r--r--completions/gpasswd12
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/gpasswd b/completions/gpasswd
index 8f27cfec..f1f22003 100644
--- a/completions/gpasswd
+++ b/completions/gpasswd
@@ -6,20 +6,20 @@ _gpasswd()
_init_completion || return
case $prev in
- --add|--delete|--administrators|--members|-!(-*)[adAM])
- COMPREPLY=( $(compgen -u -- "$cur") )
+ --add | --delete | --administrators | --members | -!(-*)[adAM])
+ COMPREPLY=($(compgen -u -- "$cur"))
return
;;
esac
- if [[ "$cur" == -* ]]; then
+ if [[ $cur == -* ]]; then
# TODO: only -A and -M can be combined
- COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
+ COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
return
fi
- COMPREPLY=( $(compgen -g -- "$cur") )
+ COMPREPLY=($(compgen -g -- "$cur"))
} &&
-complete -F _gpasswd gpasswd
+ complete -F _gpasswd gpasswd
# ex: filetype=sh