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

t4201-shortlog.sh does bad things to my terminal

From
SVSven Verdoolaege <skimo@kotnet.org>
Date
Apr 23, 2007, 17:03 UTC
Message-ID
<20070423170301.GL955MdfPADPa@greensroom.kotnet.org>
Running t4201-shortlog.sh in a non-utf8 terminal has some unpleasant effects:
bash-3.00$ xterm -v
XFree86 4.2.99.903(174)
bash-3.00$ locale
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE=POSIX
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=
bash-3.00$ sh ./t4201-shortlog.sh --verbose
Created commit b8ab028: This is a very, very long first line for the commit message to see if it is wrapped correctly
 1 files changed, 1 insertions(+), 1 deletions(-)
Created commit 3da0b85: Thð
(The cursor is now about half way the last line.)

It appears that this message is printing a control character to turn off echoing, because the terminal appears completely unresponsive afterwards. Typing "reset" restores the terminal.

Is this really necessary?
skimo
Next: Johannes Schindelin
Message 1 of 6 in “t4201-shortlog.sh does bad things to my terminal”
  1. Sven VerdoolaegeApr 23, 2007
  2. Johannes SchindelinApr 23, 2007
  3. Sven VerdoolaegeApr 23, 2007
  4. Junio C HamanoApr 23, 2007
  5. Johannes SchindelinApr 23, 2007
  6. Junio C HamanoApr 23, 2007

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.