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/makepkg | |
parent | 019f3cc463db63abc6460f97deb488deec43840b (diff) | |
download | bash-completion-95623d39d6029ba78ec96ad5ea08e9ac12629b91.tar.gz |
New upstream version 2.11upstream/2.11upstream
Diffstat (limited to 'completions/makepkg')
-rw-r--r-- | completions/makepkg | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/makepkg b/completions/makepkg index 71d4f76d..23ac7848 100644 --- a/completions/makepkg +++ b/completions/makepkg @@ -7,16 +7,16 @@ _makepkg_slackware() _init_completion || return case "$prev" in - -l|--linkadd|-c|--chown) - COMPREPLY=( $(compgen -W 'y n' -- "$cur") ) + -l | --linkadd | -c | --chown) + COMPREPLY=($(compgen -W 'y n' -- "$cur")) return ;; esac - if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W \ + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W \ '$($1 | command sed -e "s/^options://" | _parse_help -)' \ - -- "$cur") ) + -- "$cur")) return fi @@ -43,6 +43,6 @@ _makepkg_bootstrap() complete -F $fname makepkg $fname } && -complete -F _makepkg_bootstrap makepkg + complete -F _makepkg_bootstrap makepkg # ex: filetype=sh |