chiark / gitweb /
shell-completion: busctl
[elogind.git] / shell-completion / bash / loginctl
index 3104b305fa49b55c5e344b67272730ed4c96e4b1..b0816a3b868ed39a29412f211d7b9fcd05aa1549 100644 (file)
@@ -70,7 +70,7 @@ _loginctl () {
                 [ATTACH]='attach'
         )
 
                 [ATTACH]='attach'
         )
 
-        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]}
                 if __contains_word "${COMP_WORDS[i]}" ${VERBS[*]} &&
                  ! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then
                         verb=${COMP_WORDS[i]}