X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=shell-completion%2Fbash%2Fsystemd-analyze;h=98c793be9935d90bcc468e2567fb3939f643614f;hb=56e61788c5270af99646bde353abc8b1d54ad71f;hp=b65466ba47535d625b0aa62fc0c620ee642607d1;hpb=299c397c127cda34facbe7d089f944a708ec95e9;p=elogind.git 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]}