summaryrefslogtreecommitdiff
path: root/completions/nsupdate
diff options
context:
space:
mode:
Diffstat (limited to 'completions/nsupdate')
-rw-r--r--completions/nsupdate12
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/nsupdate b/completions/nsupdate
index ff3b9a47..68df333e 100644
--- a/completions/nsupdate
+++ b/completions/nsupdate
@@ -20,21 +20,21 @@ _nsupdate()
;;
-*y)
if [[ $cur == h* ]]; then
- COMPREPLY=( $(compgen -W "hmac-{md5,sha{1,224,256,384,512}}" \
- -S : -- "$cur") )
- [[ $COMPREPLY == *: ]] && compopt -o nospace
+ COMPREPLY=($(compgen -W "hmac-{md5,sha{1,224,256,384,512}}" \
+ -S : -- "$cur"))
+ [[ ${COMPREPLY-} == *: ]] && compopt -o nospace
fi
return
;;
esac
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_usage "$1")' -- "$cur") )
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '$(_parse_usage "$1")' -- "$cur"))
return
fi
_filedir
} &&
-complete -F _nsupdate nsupdate
+ complete -F _nsupdate nsupdate
# ex: filetype=sh