X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=shell-completion%2Fbash%2Fsystemctl;h=86ea33c6e2c5fcba6bb71a121840fa53e0cec78d;hp=e96b1f2ccc7dc2e613f2fde940fe6b5214bc63ba;hb=c756a6d57cdb678b702c68913dae3e11ff0427ae;hpb=6da49b8b2f78fd74bb33de961ef8a4c7f727b822 diff --git a/shell-completion/bash/systemctl b/shell-completion/bash/systemctl index e96b1f2cc..86ea33c6e 100644 --- a/shell-completion/bash/systemctl +++ b/shell-completion/bash/systemctl @@ -146,7 +146,7 @@ _systemctl () { [TARGETS]='set-default' ) - 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]} @@ -154,7 +154,7 @@ _systemctl () { fi done - if [[ -z $verb ]]; then + if [[ -z $verb ]]; then comps="${VERBS[*]}" elif __contains_word "$verb" ${VERBS[ALL_UNITS]}; then