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

Re: [PATCH] contrib/git-resurrect.sh: do not write \t for HT in sed scripts

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 2, 2017, 16:46 UTC
Message-ID
<xmqqzifysqol.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<7028b4eb-aa2b-aaf6-764d-cffab24a9968@gmail.com>
Jakub Narębski <jnareb@gmail.com> writes:
Show 15 quoted lines
> W dniu 01.04.2017 o 06:14, Junio C Hamano pisze:
>
>> Just like we did in 0d1d6e50 ("t/t7003: replace \t with literal tab
>> in sed expression", 2010-08-12), avoid writing "\t" for HT in sed
>> scripts, which is not portable.
>
> I guess it is not possible to use HT variable (similar to LF that we
> have in t/test-lib.sh, and which is defined by some scripts) set to
> literal tab
>
>   HT="	"
>
> wouldn't work there, is it?
>
> Using this variable would make literal tab character more visible.
Patches welcome.
Previous: Jakub Narębski
Message 11 of 11 in “name-hash: fix buffer overrun”
  1. name-hash: fix buffer overrungit@jeffhostetler.com, Mar 31, 2017
  2. name-hash: fix buffer overrungit@jeffhostetler.com, Mar 31, 2017
  3. Junio C HamanoMar 31, 2017
  4. Junio C HamanoMar 31, 2017
  5. Junio C HamanoMar 31, 2017
  6. Junio C HamanoApr 1, 2017
  7. Johannes SchindelinApr 1, 2017
  8. Junio C HamanoApr 1, 2017
  9. contrib/git-resurrect.sh: do not write \t for HT in sed scriptsJunio C Hamano, Apr 1, 2017
  10. Jakub NarębskiApr 2, 2017
  11. Junio C HamanoApr 2, 2017

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.