summaryrefslogtreecommitdiff
path: root/completions/chpasswd
diff options
context:
space:
mode:
Diffstat (limited to 'completions/chpasswd')
-rw-r--r--completions/chpasswd16
1 files changed, 8 insertions, 8 deletions
diff --git a/completions/chpasswd b/completions/chpasswd
index 8c5a4dfd..3abea998 100644
--- a/completions/chpasswd
+++ b/completions/chpasswd
@@ -6,15 +6,15 @@ _chpasswd()
_init_completion -s || return
case $prev in
- --crypt|-!(-*)c)
- COMPREPLY=( $(compgen -W 'DES MD5 NONE SHA256 SHA512' \
- -- "$cur") )
+ --crypt | -!(-*)c)
+ COMPREPLY=($(compgen -W 'DES MD5 NONE SHA256 SHA512' \
+ -- "$cur"))
return
;;
- --sha-rounds|-!(-*)s)
+ --sha-rounds | -!(-*)s)
return
;;
- --root|-!(-*)R)
+ --root | -!(-*)R)
_filedir -d
return
;;
@@ -22,9 +22,9 @@ _chpasswd()
$split && return
- COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
- [[ $COMPREPLY == *= ]] && compopt -o nospace
+ COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
+ [[ ${COMPREPLY-} == *= ]] && compopt -o nospace
} &&
-complete -F _chpasswd chpasswd
+ complete -F _chpasswd chpasswd
# ex: filetype=sh