diff options
author | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2019-08-07 09:17:13 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2019-08-07 09:17:13 -0300 |
commit | 5732da2af736c40cf693354485446ab4867ecb4d (patch) | |
tree | 76d76cdfa16ca62d20fb109da13895ec64fff110 /completions/ccache | |
parent | 9cd22d1df8f0f5b554858471c86faa9f37b8fed4 (diff) | |
download | bash-completion-5732da2af736c40cf693354485446ab4867ecb4d.tar.gz |
New upstream version 2.9upstream/2.9
Diffstat (limited to 'completions/ccache')
-rw-r--r-- | completions/ccache | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/ccache b/completions/ccache index 7184d74e..7dbec9fe 100644 --- a/completions/ccache +++ b/completions/ccache @@ -11,17 +11,17 @@ _ccache() _command_offset $i return fi - [[ ${COMP_WORDS[i]} == -[oFM] ]] && ((i++)) + [[ ${COMP_WORDS[i]} == -*[oFM] ]] && ((i++)) done case $prev in - -h|--help|-V|--version|-F|--max-files|-M|--max-size) + --help|--version|--max-files|--max-size|-!(-*)[hVFM]) return ;; - -o|--set-config) + --set-config|-!(-*)o) if [[ $cur != *=* ]]; then - COMPREPLY=( $( compgen -S = -W "$( $1 -p 2>/dev/null | \ - awk '$3 = "=" { print $2 }' )" -- "$cur" ) ) + COMPREPLY=( $(compgen -S = -W "$($1 -p 2>/dev/null | \ + awk '$3 = "=" { print $2 }')" -- "$cur") ) [[ $COMPREPLY == *= ]] && compopt -o nospace fi return @@ -30,7 +30,7 @@ _ccache() $split && return - COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) + COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") ) [[ $COMPREPLY == *= ]] && compopt -o nospace } && complete -F _ccache ccache |