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/2to3 | |
parent | 019f3cc463db63abc6460f97deb488deec43840b (diff) | |
download | bash-completion-95623d39d6029ba78ec96ad5ea08e9ac12629b91.tar.gz |
New upstream version 2.11upstream/2.11upstream
Diffstat (limited to 'completions/2to3')
-rw-r--r-- | completions/2to3 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/completions/2to3 b/completions/2to3 index 049ba65b..7c5b3303 100644 --- a/completions/2to3 +++ b/completions/2to3 @@ -6,19 +6,19 @@ _2to3() _init_completion -s || return case $prev in - -h|--help|--add-suffix) + -h | --help | --add-suffix) return ;; - -f|--fix|-x|--nofix) - COMPREPLY=( $(compgen -W \ - "$($1 --list-fixes 2>/dev/null | command sed -e 1d)" -- "$cur") ) + -f | --fix | -x | --nofix) + COMPREPLY=($(compgen -W \ + "$($1 --list-fixes 2>/dev/null | command sed -e 1d)" -- "$cur")) return ;; - -j|--processes) - COMPREPLY=( $(compgen -W "{1..$(_ncpus)}" -- "$cur") ) + -j | --processes) + COMPREPLY=($(compgen -W "{1..$(_ncpus)}" -- "$cur")) return ;; - -o|--output-dir) + -o | --output-dir) _filedir -d return ;; @@ -27,13 +27,13 @@ _2to3() $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 _filedir py } && -complete -F _2to3 2to3 + complete -F _2to3 2to3 # ex: filetype=sh |