git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] t9001: set TERM=dumb to prevent ANSI output

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Mar 6, 2008, 16:53 UTC
Message-ID
<alpine.LSU.1.00.0803061752340.3941@racer.site>

At least on one of my machines, Term::ReadLine tries to be clever and sends \x1b\x5b1034h at the end of the script when TERM is set to 'xterm'.

To prevent that, force TERM=dumb just for the test.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
 t/t9001-send-email.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
index cbbfa9c..d6fcac3 100755
--- a/t/t9001-send-email.sh
+++ b/t/t9001-send-email.sh
@@ -68,7 +68,7 @@ Result: OK
 EOF
 
 test_expect_success 'Show all headers' '
-	git send-email \
+	TERM=dumb git send-email \
 		--dry-run \
 		--from="Example <from@example.com>" \
 		--to=to@example.com \
-- 
1.5.4.3.571.g9aec3.dirty
Next: Junio C Hamano
Message 1 of 9 in “t9001: set TERM=dumb to prevent ANSI output”
  1. t9001: set TERM=dumb to prevent ANSI outputJohannes Schindelin, Mar 6, 2008
  2. Junio C HamanoMar 6, 2008
  3. Johannes SchindelinMar 7, 2008
  4. Christian CouderMar 7, 2008
  5. Junio C HamanoMar 7, 2008
  6. Junio C HamanoMar 7, 2008
  7. Johannes SchindelinMar 7, 2008
  8. Junio C HamanoMar 7, 2008
  9. Johannes SchindelinMar 7, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.