Skip to content

Commit c3cb27c

Browse files
committed
Suppress SC2128 for array PROMPT_COMMAND
1 parent 6e0f9f9 commit c3cb27c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash-preexec.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ __bp_install_prompt_command() {
446446

447447
# Install our hooks in PROMPT_COMMAND to allow our trap to know when we've
448448
# actually entered something.
449-
# shellcheck disable=SC2178 # PROMPT_COMMAND is not an array in bash <= 5.0
449+
# shellcheck disable=SC2178,SC2128 # PROMPT_COMMAND is not an array in bash <= 5.0
450450
PROMPT_COMMAND='__bp_precmd_invoke_cmd'${PROMPT_COMMAND:+$'\n'$PROMPT_COMMAND}
451451
if __bp_use_array_prompt_command; then
452452
PROMPT_COMMAND+=('__bp_interactive_mode')

0 commit comments

Comments
 (0)