Skip to content

Commit

Permalink
Suppress SC2128 for array PROMPT_COMMAND
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Feb 3, 2024
1 parent 9c669e6 commit 1dd7680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash-preexec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 1dd7680

Please sign in to comment.