From 157fbf9dc89c6775d8e2401cfdd0f68dd3dcd09f Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Wed, 13 Apr 2022 16:47:33 +0900 Subject: [PATCH] fix(_comp_finalize): fix up f1f454bc for nounset --- bash_completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_completion b/bash_completion index 9564c2c5f0c..0e5552fbefe 100644 --- a/bash_completion +++ b/bash_completion @@ -972,7 +972,7 @@ _comp_finalize() fi # Call general finalizers - if ((${#BASH_COMPLETION_FINALIZE_HOOKS[@]})); then + if [[ ${BASH_COMPLETION_FINALIZE_HOOKS[*]+set} ]]; then for _comp_local_hook in "${BASH_COMPLETION_FINALIZE_HOOKS[@]}"; do eval -- "$_comp_local_hook" done