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

Re: [PATCH] tests: make 'test_oid' print trailing newline

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Dec 22, 2022, 18:58 UTC
Message-ID
<20221222185804.GE3411@szeder.dev>
In-Reply-To
<xmqqy1r4usjy.fsf@gitster.g>
On Mon, Dec 19, 2022 at 09:48:49AM +0900, Junio C Hamano wrote:
Show 11 quoted lines
> SZEDER Gábor <szeder.dev@gmail.com> writes:
> >       $ git grep '\stest_oid ' -- ':/t/*.sh'
> >       $ git grep 'echo "\?$(test_oid ' -- ':/t/*.sh'
> 
> I found these examples in the log message a bit annoying to see, as
> both invite an undefined behaviour by having an ordinary character
> ('s' or '?')  preceded by an unescaped backslash in a POSIXly
> correct implementation of BRE.  GNU libc seems to be OK with it (I
> double checked by adding "-G" on the command line to make sure my
> experiments are not affected by any grep.patterntype), but they may
> fail for folks on stricter platforms.

Please feel free to amend the commit message as you see fit. Usually I would do that myself as I'm rather picky of my commit messages, but, alas, I'm not versed in portability issues of regexes, so I'm not sure what the right regexes would be.

Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 7 in “tests: make 'test_oid' print trailing newline”
  1. tests: make 'test_oid' print trailing newlineSZEDER Gábor, Dec 18, 2022
  2. Junio C HamanoDec 19, 2022
  3. SZEDER GáborDec 22, 2022
  4. Junio C HamanoDec 23, 2022
  5. brian m. carlsonDec 19, 2022
  6. Ævar Arnfjörð BjarmasonDec 19, 2022
  7. Junio C HamanoDec 19, 2022

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.