diff --git a/shell-completion/bash/hostnamectl b/shell-completion/bash/hostnamectl index af4339111e1..0f69e23e6f8 100644 --- a/shell-completion/bash/hostnamectl +++ b/shell-completion/bash/hostnamectl @@ -39,7 +39,7 @@ _hostnamectl() { [ARG]='-H --host -M --machine --json' ) - if __contains_word "$prev" ${OPTS[ARG]} ${OPTS[ARGUNKNOWN]}; then + if __contains_word "$prev" ${OPTS[ARG]}; then case $prev in --host|-H) comps=$(compgen -A hostname)