summaryrefslogtreecommitdiff
path: root/completions/nsupdate
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.net.br>2020-08-03 18:43:13 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.net.br>2020-08-03 18:43:13 -0300
commit95623d39d6029ba78ec96ad5ea08e9ac12629b91 (patch)
treeea0fe36eb5e6f40e0a1f765d44c4b0c0b2bfb089 /completions/nsupdate
parent019f3cc463db63abc6460f97deb488deec43840b (diff)
downloadbash-completion-95623d39d6029ba78ec96ad5ea08e9ac12629b91.tar.gz
New upstream version 2.11upstream/2.11upstream
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