diff options
Diffstat (limited to 'completions/pngfix')
-rw-r--r-- | completions/pngfix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/pngfix b/completions/pngfix index b4b58e83..64b5481d 100644 --- a/completions/pngfix +++ b/completions/pngfix @@ -6,7 +6,7 @@ _pngfix() _init_completion -s || return case $prev in - --suffix|--prefix) + --suffix | --prefix) return ;; --output) @@ -14,9 +14,9 @@ _pngfix() return ;; --strip) - COMPREPLY=( $(IFS='|' compgen -W '$("$1" --help 2>&1 | + COMPREPLY=($(IFS='|' compgen -W '$("$1" --help 2>&1 | command sed -ne "s/.*--strip=\[\([^]]*\)\].*/\1/p")' \ - -- "$cur") ) + -- "$cur")) return ;; esac @@ -24,13 +24,13 @@ _pngfix() $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 png } && -complete -F _pngfix pngfix + complete -F _pngfix pngfix # ex: filetype=sh |