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

Re: [PATCH] t/gitweb-lib: Split HTTP response with non-GNU sed

From
Brian Gernhardt <brian@gernhardtsoftware.com>
Date
Nov 23, 2009, 18:50 UTC
Message-ID
<BF7341BA-DC27-47C6-B140-2D5A074572E7@gernhardtsoftware.com>
In-Reply-To
<7vocmtyu3v.fsf@alter.siamese.dyndns.org>
On Nov 23, 2009, at 1:27 PM, Junio C Hamano wrote:
Show 8 quoted lines
> Brian Gernhardt <brian@gernhardtsoftware.com> writes:
> 
>> Recognizing \r in a regex is something GNU sed will do, but other sed
>> implementation's won't.  (Found with BSD sed on OS X.) So use a
>> literal carriage return instead.
> 
> I'd actually prefer not having to deal with this issue.  How about doing
> something like this instead?
Works for me.  I just went for the obvious minimal change to make it work.  But since we're testing a perl script, we might as well just use perl to deal with it's output.
~~ Brian
Previous: Junio C HamanoNext: Jakub Narebski
Message 3 of 4 in “t/gitweb-lib: Split HTTP response with non-GNU sed”
  1. t/gitweb-lib: Split HTTP response with non-GNU sedBrian Gernhardt, Nov 23, 2009
  2. Junio C HamanoNov 23, 2009
  3. Brian GernhardtNov 23, 2009
  4. Jakub NarebskiNov 24, 2009

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.