From df7ca94009cea17cdf06f48b4462984578c2038c Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Tue, 22 Jun 2021 14:54:08 +0100 Subject: [PATCH] completion/hostnamectl: do not dereference non-existing OPTS[ARGUNKNOWN] --- shell-completion/bash/hostnamectl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3