From c3cb27cd07fa46bce027f24c1f491593dc2339f7 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Sat, 3 Feb 2024 15:10:10 +0900 Subject: [PATCH] Suppress SC2128 for array PROMPT_COMMAND --- bash-preexec.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash-preexec.sh b/bash-preexec.sh index c870cb1..bc6d7bb 100644 --- a/bash-preexec.sh +++ b/bash-preexec.sh @@ -446,7 +446,7 @@ __bp_install_prompt_command() { # Install our hooks in PROMPT_COMMAND to allow our trap to know when we've # actually entered something. - # shellcheck disable=SC2178 # PROMPT_COMMAND is not an array in bash <= 5.0 + # shellcheck disable=SC2178,SC2128 # PROMPT_COMMAND is not an array in bash <= 5.0 PROMPT_COMMAND='__bp_precmd_invoke_cmd'${PROMPT_COMMAND:+$'\n'$PROMPT_COMMAND} if __bp_use_array_prompt_command; then PROMPT_COMMAND+=('__bp_interactive_mode')