diff options
author | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2020-08-03 18:43:13 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2020-08-03 18:43:13 -0300 |
commit | 95623d39d6029ba78ec96ad5ea08e9ac12629b91 (patch) | |
tree | ea0fe36eb5e6f40e0a1f765d44c4b0c0b2bfb089 /completions/autoreconf | |
parent | 019f3cc463db63abc6460f97deb488deec43840b (diff) | |
download | bash-completion-3f3e0627fa0e1521391adec3d037f6f57772c8a1.tar.gz |
New upstream version 2.11upstream/2.11upstream
Diffstat (limited to 'completions/autoreconf')
-rw-r--r-- | completions/autoreconf | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/completions/autoreconf b/completions/autoreconf index cf983312..9b0f0dc9 100644 --- a/completions/autoreconf +++ b/completions/autoreconf @@ -6,17 +6,17 @@ _autoreconf() _init_completion -s || return case "$prev" in - --help|-h|--version|-V) + --help | -h | --version | -V) return ;; - --warnings|-W) - local cats=( cross gnu obsolete override portability syntax \ - unsupported ) - COMPREPLY=( $(compgen -W \ - '${cats[@]} ${cats[@]/#/no-} all none error' -- "$cur") ) + --warnings | -W) + local cats=(cross gnu obsolete override portability syntax + unsupported) + COMPREPLY=($(compgen -W \ + '${cats[@]} ${cats[@]/#/no-} all none error' -- "$cur")) return ;; - --prepend-include|-B|--include|-I) + --prepend-include | -B | --include | -I) _filedir -d return ;; @@ -24,9 +24,9 @@ _autoreconf() $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 return fi @@ -36,6 +36,6 @@ _autoreconf() _filedir -d fi } && -complete -F _autoreconf autoreconf autoheader + complete -F _autoreconf autoreconf autoheader # ex: filetype=sh |