Commit 0281bed
committed
fix: ensure consistent bash command output across terminal environments
The output from `spawn_bash` was inconsistent depending on the terminal
environment where the process was spawned. In tmux and other advanced
terminals, the output included ANSI control sequences for features like
bracketed paste mode, causing test failures and unreliable behavior.
Set TERM="" when spawning bash to force a dumb terminal mode, ensuring
clean, consistent output regardless of the parent terminal environment.
Example error:
```
thread 'session::tests::test_bash' panicked at src/session.rs:542:9:
assertion `left == right` failed
left: "/tmp\r\n"
right: "\u{1b}[?2004l\r\r\n/tmp\r\n\u{1b}[?2004h"
```1 parent ebb90a9 commit 0281bed
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
| 400 | + | |
400 | 401 | | |
401 | 402 | | |
402 | 403 | | |
| |||
0 commit comments