Skip to content

Commit 6dcdaf1

Browse files
committed
fix: use printf instead of echo -e for more consistent behavior across platforms
1 parent 149de05 commit 6dcdaf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/integrations/terminal/__tests__/TerminalProcessExec.bash.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,9 @@ describe("TerminalProcess with Bash Command Output", () => {
314314
})
315315

316316
it(TEST_PURPOSES.CONTROL_SEQUENCES, async () => {
317-
// Use ANSI escape sequences directly in bash
317+
// Use printf instead of echo -e for more consistent behavior across platforms
318318
const { capturedOutput } = await testTerminalCommand(
319-
'echo -e "\\033[31mRed Text\\033[0m"',
319+
'printf "\\033[31mRed Text\\033[0m\\n"',
320320
"\x1B[31mRed Text\x1B[0m\n",
321321
)
322322
expect(capturedOutput).toBe("\x1B[31mRed Text\x1B[0m\n")

0 commit comments

Comments
 (0)