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

Re: [PATCH 12/14] t3032-*.sh: Do not strip CR from line-endings while grepping on MinGW

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 14, 2010, 19:44 UTC
Message-ID
<7vaak8ta01.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4D07B904.8040206@ramsay1.demon.co.uk>
Ramsay Jones <ramsay@ramsay1.demon.co.uk> writes:
Show 7 quoted lines
> By default grep reads in text mode and converts CRLF into LF line
> endings, which causes tests 4, 6 and 8 to fail. In a similar manner
> to commit a94114ad  (Do not strip CR when grepping HTTP headers,
> 2010-09-12), we set (and export) the GREP_OPTIONS variable to -U so
> that grep will use binary mode.
>
> Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>

Adding these GNU specific options leaves a bad aftertaste in my mouth, but I'd pass them, as their use is limited to certain platforms with "prereq".

Thanks.
Previous: Ramsay Jones
Message 2 of 2 in “t3032-*.sh: Do not strip CR from line-endings while grepping on MinGW”
  1. 12/14 t3032-*.sh: Do not strip CR from line-endings while grepping on MinGWRamsay Jones, Dec 14, 2010
  2. Junio C HamanoDec 14, 2010

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.