summaryrefslogtreecommitdiff
path: root/completions/sh
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.net.br>2019-08-07 09:17:13 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.net.br>2019-08-07 09:17:13 -0300
commit5732da2af736c40cf693354485446ab4867ecb4d (patch)
tree76d76cdfa16ca62d20fb109da13895ec64fff110 /completions/sh
parent9cd22d1df8f0f5b554858471c86faa9f37b8fed4 (diff)
downloadbash-completion-5732da2af736c40cf693354485446ab4867ecb4d.tar.gz
New upstream version 2.9upstream/2.9
Diffstat (limited to 'completions/sh')
-rw-r--r--completions/sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/completions/sh b/completions/sh
index fd785a6d..93f00952 100644
--- a/completions/sh
+++ b/completions/sh
@@ -10,24 +10,24 @@ _sh()
return
;;
-o|+o)
- COMPREPLY=( $( compgen -W 'allexport errexit ignoreeof monitor
+ COMPREPLY=( $(compgen -W 'allexport errexit ignoreeof monitor
noclobber noglob noexec nolog notify nounset verbose vi
- xtrace' -- "$cur" ) )
+ xtrace' -- "$cur") )
return
;;
esac
local opts="-a -b -C -e -f -h -i -m -n -o -u -v -x"
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W "$opts -c -s" -- "$cur" ) )
+ COMPREPLY=( $(compgen -W "$opts -c -s" -- "$cur") )
return
elif [[ "$cur" == +* ]]; then
- COMPREPLY=( $( compgen -W "${opts//-/+}" -- "$cur" ) )
+ COMPREPLY=( $(compgen -W "${opts//-/+}" -- "$cur") )
return
fi
local args ext=
- _count_args
+ _count_args "" "@(-c|[-+]o)"
[[ $args -eq 1 ]] && ext=sh
_filedir $ext
} &&