chiark / gitweb /
shell-completion: busctl
[elogind.git] / shell-completion / bash / systemd-analyze
index b65466ba47535d625b0aa62fc0c620ee642607d1..98c793be9935d90bcc468e2567fb3939f643614f 100644 (file)
@@ -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]}