X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=shell-completion%2Fbash%2Fbusctl;h=7480a6c3fb863b807d802fe5bf8c104c61dfc1eb;hp=8ce813f4b3d26d92de4874c3bb4d64f81cacb48a;hb=0bc8e31b358a872ec2631874bd2109ba4e009ccf;hpb=86cb0691b71873c6fe30a103dc98153e2d9ab507 diff --git a/shell-completion/bash/busctl b/shell-completion/bash/busctl index 8ce813f4b..7480a6c3f 100644 --- a/shell-completion/bash/busctl +++ b/shell-completion/bash/busctl @@ -53,7 +53,7 @@ _busctl() { [STANDALONE]='list monitor' ) - for ((i=0; i <= COMP_CWORD; i++)); do + for ((i=0; i < COMP_CWORD; i++)); do if __contains_word "${COMP_WORDS[i]}" ${VERBS[*]} && ! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then verb=${COMP_WORDS[i]}