X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=shell-completion%2Fbash%2Fsystemd-analyze;fp=shell-completion%2Fbash%2Fsystemd-analyze;h=6afcd963c33f3cc9598410df8b8c1445a4e646f1;hb=3ce09b7da2eb8b888066468663b2b5c81a05a03c;hp=98c793be9935d90bcc468e2567fb3939f643614f;hpb=97e0691f85da6e7ea131ce80bd61e2d47a737a61;p=elogind.git diff --git a/shell-completion/bash/systemd-analyze b/shell-completion/bash/systemd-analyze index 98c793be9..6afcd963c 100644 --- a/shell-completion/bash/systemd-analyze +++ b/shell-completion/bash/systemd-analyze @@ -39,7 +39,7 @@ _systemd_analyze() { _init_completion || return - 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]}