From f1f454bcb4d86581fb930c13fc8aac5fa4affa83 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Wed, 13 Apr 2022 15:45:42 +0900 Subject: [PATCH] fix(_comp_finalize): preserve existing values of the finalizer hooks --- bash_completion | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bash_completion b/bash_completion index 4ed1070835c..9564c2c5f0c 100644 --- a/bash_completion +++ b/bash_completion @@ -953,11 +953,11 @@ _comp_finalize__original_return_trap= # This associative array contains the finalizer commands with the key # being the name of the completed command. -declare -gA BASH_COMPLETION_FINALIZE_CMD_HOOKS=() +declare -gA BASH_COMPLETION_FINALIZE_CMD_HOOKS # This array contains the general finalizer commands that will be # executed for all the commands. -BASH_COMPLETION_FINALIZE_HOOKS=() +declare -ga BASH_COMPLETION_FINALIZE_HOOKS _comp_finalize() {