From: Luca Boccassi Date: Tue, 22 Jun 2021 13:54:08 +0000 (+0100) Subject: completion/hostnamectl: do not dereference non-existing OPTS[ARGUNKNOWN] X-Git-Tag: v249-rc2~28^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=df7ca94009cea17cdf06f48b4462984578c2038c;p=thirdparty%2Fsystemd.git completion/hostnamectl: do not dereference non-existing OPTS[ARGUNKNOWN] --- 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)