X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=shell-completion%2Fbash%2Fsystemd-analyze;fp=shell-completion%2Fbash%2Fsystemd-analyze;h=98c793be9935d90bcc468e2567fb3939f643614f;hp=b65466ba47535d625b0aa62fc0c620ee642607d1;hb=86cb0691b71873c6fe30a103dc98153e2d9ab507;hpb=ff6c70f18bacad842b88bf2bfb86d6e9841c1a16 diff --git a/shell-completion/bash/systemd-analyze b/shell-completion/bash/systemd-analyze index b65466ba4..98c793be9 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]}