summaryrefslogtreecommitdiff
path: root/completions/xvfb-run
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/xvfb-run
parent019f3cc463db63abc6460f97deb488deec43840b (diff)
downloadbash-completion-95623d39d6029ba78ec96ad5ea08e9ac12629b91.tar.gz
New upstream version 2.11upstream/2.11upstream
Diffstat (limited to 'completions/xvfb-run')
-rw-r--r--completions/xvfb-run14
1 files changed, 7 insertions, 7 deletions
diff --git a/completions/xvfb-run b/completions/xvfb-run
index 162c66ed..ed2788a9 100644
--- a/completions/xvfb-run
+++ b/completions/xvfb-run
@@ -6,7 +6,7 @@ _xvfb_run()
_init_completion -s || return
local i
- for (( i=1; i <= COMP_CWORD; i++ )); do
+ for ((i = 1; i <= COMP_CWORD; i++)); do
if [[ ${COMP_WORDS[i]} != -* ]]; then
_command_offset $i
return
@@ -15,10 +15,10 @@ _xvfb_run()
done
case $prev in
- --help|--server-num|--xauth-protocol|--server-args|-!(-*)[hnps])
+ --help | --server-num | --xauth-protocol | --server-args | -!(-*)[hnps])
return
;;
- --error-file|--auth-file|-!(-*)[ef])
+ --error-file | --auth-file | -!(-*)[ef])
_filedir
return
;;
@@ -26,11 +26,11 @@ _xvfb_run()
$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
fi
} &&
-complete -F _xvfb_run xvfb-run
+ complete -F _xvfb_run xvfb-run
# ex: filetype=sh