diff options
author | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2020-08-03 18:43:14 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2020-08-03 18:43:14 -0300 |
commit | cc81eb120ad1a456f030f7b828697013a9b2b66a (patch) | |
tree | bb61702f98b407b2f7987faa846190fb3f002e55 /completions/scrub | |
parent | 8394526300cc384e53c470303aeb8b4fdcaf84a3 (diff) | |
parent | 95623d39d6029ba78ec96ad5ea08e9ac12629b91 (diff) | |
download | bash-completion-cc81eb120ad1a456f030f7b828697013a9b2b66a.tar.gz |
Update upstream source from tag 'upstream/2.11'
Update to upstream version '2.11'
with Debian dir 932c2c1a6192441f3cd8897e72d737f2f0277f60
Diffstat (limited to 'completions/scrub')
-rw-r--r-- | completions/scrub | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/completions/scrub b/completions/scrub index 7fca6077..bbb37be4 100644 --- a/completions/scrub +++ b/completions/scrub @@ -6,16 +6,16 @@ _scrub() _init_completion -s || return case $prev in - --version|--help|--blocksize|--device-size|--dirent|-!(-*)[vhbsD]) + --version | --help | --blocksize | --device-size | --dirent | -!(-*)[vhbsD]) return ;; - --pattern|-!(-*)p) - COMPREPLY=( $(compgen -W '$("$1" --help 2>&1 | + --pattern | -!(-*)p) + COMPREPLY=($(compgen -W '$("$1" --help 2>&1 | awk "/^Available/{flag=1;next}/^ /&&flag{print \$1}")' \ - -- "$cur") ) + -- "$cur")) return ;; - --freespace|-!(-*)X) + --freespace | -!(-*)X) _filedir -d return ;; @@ -24,13 +24,13 @@ _scrub() $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 } && -complete -F _scrub scrub + complete -F _scrub scrub # ex: filetype=sh |