diff options
Diffstat (limited to 'completions/lzip')
-rw-r--r-- | completions/lzip | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/completions/lzip b/completions/lzip index 0f95722c..05f169c9 100644 --- a/completions/lzip +++ b/completions/lzip @@ -8,15 +8,15 @@ _lzip() local decompress=false case $prev in - --help|--version|--member-size|--match-length|--dictionary-size|\ - --volume-size|--data-size|-!(-*)@([bmsSB]|[hV]*)) + --help | --version | --member-size | --match-length | --dictionary-size | \ + --volume-size | --data-size | -!(-*)@([bmsSB]|[hV]*)) return ;; --decompress-!(-*)d) decompress=true ;; --threads-!(-*)n) - COMPREPLY=( $(compgen -W "{1..$(_ncpus)}" -- "$cur") ) + COMPREPLY=($(compgen -W "{1..$(_ncpus)}" -- "$cur")) return ;; --output-!(-*)o) @@ -27,9 +27,9 @@ _lzip() $split && return - if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W '$(_parse_help "$1") {-1..-9}' -- "$cur") ) - [[ $COMPREPLY == *= ]] && compopt -o nospace + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W '$(_parse_help "$1") {-1..-9}' -- "$cur")) + [[ ${COMPREPLY-} == *= ]] && compopt -o nospace return fi @@ -40,8 +40,8 @@ _lzip() local IFS=$'\n' compopt -o filenames - COMPREPLY=( $(compgen -f -X "*.lz" -- "$cur") $(compgen -d -- "$cur") ) + COMPREPLY=($(compgen -f -X "*.lz" -- "$cur") $(compgen -d -- "$cur")) } && -complete -F _lzip clzip lzip pdlzip plzip + complete -F _lzip clzip lzip pdlzip plzip # ex: filetype=sh |