diff options
Diffstat (limited to 'completions/xzdec')
-rw-r--r-- | completions/xzdec | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/xzdec b/completions/xzdec index 6b402eb3..993bd2b2 100644 --- a/completions/xzdec +++ b/completions/xzdec @@ -6,24 +6,24 @@ _xzdec() _init_completion -s || return case $prev in - --memory|-!(-*)M) + --memory | -!(-*)M) return ;; - --help|--version|-!(-*)[hV]) + --help | --version | -!(-*)[hV]) return ;; esac $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 _filedir xz # no lzma support here as of xz 4.999.9beta } && -complete -F _xzdec xzdec + complete -F _xzdec xzdec # ex: filetype=sh |