From c7c2f805a6ab8cb2041f850d44dc7e56eeffce05 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Sat, 7 Mar 2026 09:19:03 +0900 Subject: [PATCH 1/2] Dummy change to show the regression (will be squashed) --- test/bash-preexec.bats | 1 + 1 file changed, 1 insertion(+) diff --git a/test/bash-preexec.bats b/test/bash-preexec.bats index 5819853..464c3bb 100644 --- a/test/bash-preexec.bats +++ b/test/bash-preexec.bats @@ -108,6 +108,7 @@ set_exit_code_and_run_precmd() { foo() { (( trap_invoked_count += 1 )); } # note setting this causes BATS to mis-report the failure line when this test fails + # (dummy change to check regression) trap "foo && echo 'hello' >/dev/null" debug [ "$(trap -p DEBUG | cut -d' ' -f3-7)" == "'foo && echo '\''hello'\'' >/dev/null'" ] From f0fbe80f1d6d9dfeacd7a4fea221298f431f3b89 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Sat, 7 Mar 2026 09:19:38 +0900 Subject: [PATCH 2/2] Fix the test introduced by #170 --- test/bash-preexec.bats | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/bash-preexec.bats b/test/bash-preexec.bats index 464c3bb..eb87742 100644 --- a/test/bash-preexec.bats +++ b/test/bash-preexec.bats @@ -108,8 +108,7 @@ set_exit_code_and_run_precmd() { foo() { (( trap_invoked_count += 1 )); } # note setting this causes BATS to mis-report the failure line when this test fails - # (dummy change to check regression) - trap "foo && echo 'hello' >/dev/null" debug + trap "foo && echo 'hello' >/dev/null" DEBUG [ "$(trap -p DEBUG | cut -d' ' -f3-7)" == "'foo && echo '\''hello'\'' >/dev/null'" ] bp_install