diff options
author | Gabriel F. T. Gomes <gabriel@inconstante.eti.br> | 2017-09-25 23:46:54 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.eti.br> | 2017-09-25 23:46:54 -0300 |
commit | 6d88f1055806932d9291f96847d2b691cccda2cd (patch) | |
tree | 0ff79eedaa8a239331256048981deedbd0721965 /completions/qdbus | |
parent | 059a87a5936cfebfd2d71ab8057002cafb2ea051 (diff) | |
download | bash-completion-6d88f1055806932d9291f96847d2b691cccda2cd.tar.gz |
New upstream version 2.7upstream/2.7
Diffstat (limited to 'completions/qdbus')
-rw-r--r-- | completions/qdbus | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/qdbus b/completions/qdbus index a098fbc9..dee0760a 100644 --- a/completions/qdbus +++ b/completions/qdbus @@ -5,10 +5,10 @@ _qdbus() local cur prev words cword _init_completion || return - [[ -n $cur ]] && unset words[${#words[@]}-1] + [[ -n $cur ]] && unset "words[$((${#words[@]}-1))]" COMPREPLY=( $( compgen -W '$( command ${words[@]} 2>/dev/null | \ - sed s/\(.*\)// )' -- "$cur" ) ) + command sed "s/(.*)//" )' -- "$cur" ) ) } && complete -F _qdbus qdbus dcop -# ex: ts=4 sw=4 et filetype=sh +# ex: filetype=sh |