summaryrefslogtreecommitdiff
path: root/shell-completion/bash/loginctl
diff options
context:
space:
mode:
Diffstat (limited to 'shell-completion/bash/loginctl')
-rw-r--r--shell-completion/bash/loginctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/bash/loginctl b/shell-completion/bash/loginctl
index 7263f7f7bf..e7adb93f97 100644
--- a/shell-completion/bash/loginctl
+++ b/shell-completion/bash/loginctl
@@ -70,7 +70,7 @@ _loginctl () {
[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]}