X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=shell-completion%2Fbash%2Fhostnamectl;h=9c75da9e7f8b6f699f0d465d1563e9e10e514650;hp=38ab1344f3f31ee67faaed3cf7293623bc3168e5;hb=3ce09b7da2eb8b888066468663b2b5c81a05a03c;hpb=97e0691f85da6e7ea131ce80bd61e2d47a737a61 diff --git a/shell-completion/bash/hostnamectl b/shell-completion/bash/hostnamectl index 38ab1344f..9c75da9e7 100644 --- a/shell-completion/bash/hostnamectl +++ b/shell-completion/bash/hostnamectl @@ -41,7 +41,7 @@ _hostnamectl() { [NAME]='set-hostname' ) - for ((i=0; i <= COMP_CWORD; i++)); do + for ((i=0; i < COMP_CWORD; i++)); do if __contains_word "${COMP_WORDS[i]}" ${VERBS[*]}; then verb=${COMP_WORDS[i]} break