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/patch | |
parent | 019f3cc463db63abc6460f97deb488deec43840b (diff) | |
download | bash-completion-95623d39d6029ba78ec96ad5ea08e9ac12629b91.tar.gz |
New upstream version 2.11upstream/2.11upstream
Diffstat (limited to 'completions/patch')
-rw-r--r-- | completions/patch | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/completions/patch b/completions/patch index df85211d..e883d9ca 100644 --- a/completions/patch +++ b/completions/patch @@ -6,42 +6,42 @@ _patch() _init_completion -s || return case $prev in - --strip|--ifdef|--prefix|--basename-prefix|--suffix|--get|\ - -!(-*)[pDBYzg]) + --strip | --ifdef | --prefix | --basename-prefix | --suffix | --get | \ + -!(-*)[pDBYzg]) return ;; - --fuzz|-!(-*)F) - COMPREPLY=( $(compgen -W '{0..3}' -- "$cur") ) + --fuzz | -!(-*)F) + COMPREPLY=($(compgen -W '{0..3}' -- "$cur")) return ;; - --input|-!(-*)i) + --input | -!(-*)i) _filedir '@(?(d)patch|dif?(f))' return ;; - --output|--reject-file|-!(-*)[or]) - [[ ! $cur || $cur == - ]] && COMPREPLY=( - ) + --output | --reject-file | -!(-*)[or]) + [[ ! $cur || $cur == - ]] && COMPREPLY=(-) _filedir return ;; --quoting-style) - COMPREPLY=( $(compgen -W 'literal shell shell-always c escape' \ - -- "$cur") ) + COMPREPLY=($(compgen -W 'literal shell shell-always c escape' \ + -- "$cur")) return ;; - --version-control|-!(-*)V) - COMPREPLY=( $(compgen -W 'simple numbered existing' -- "$cur") ) + --version-control | -!(-*)V) + COMPREPLY=($(compgen -W 'simple numbered existing' -- "$cur")) return ;; - --directory|-!(-*)d) + --directory | -!(-*)d) _filedir -d return ;; --reject-format) - COMPREPLY=( $(compgen -W 'context unified' -- "$cur") ) + COMPREPLY=($(compgen -W 'context unified' -- "$cur")) return ;; --read-only) - COMPREPLY=( $(compgen -W 'ignore warn fail' -- "$cur") ) + COMPREPLY=($(compgen -W 'ignore warn fail' -- "$cur")) return ;; esac @@ -49,8 +49,8 @@ _patch() $split && return if [[ $cur == -* ]]; then - COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") ) - [[ $COMPREPLY == *= ]] && compopt -o nospace + COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur")) + [[ ${COMPREPLY-} == *= ]] && compopt -o nospace return fi @@ -65,6 +65,6 @@ _patch() ;; esac } && -complete -F _patch patch + complete -F _patch patch # ex: filetype=sh |