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

Re: [PATCH] Fix sed syntax in t7502-commit for OSX

From
SBSanti Béjar <sbejar@gmail.com>
Date
May 15, 2008, 09:37 UTC
Message-ID
<8aa486160805150237t734b24dcw4a153e41cbc7436e@mail.gmail.com>
In-Reply-To
<7vwslwgdyi.fsf@gitster.siamese.dyndns.org>
On Thu, May 15, 2008 at 10:37 AM, Junio C Hamano <gitster@pobox.com> wrote:
>
> But more importantly, as we are serious about portability, we should not
> be using "sed -i" which is not even in POSIX to begin with.

Is there a way (environment variable, flag) to test if it is POSIX? Or we just have to know?

I'll send a patch to document the "sed -i" issue in Documentation/CodingGuidelines.

>  Can we
> rewrite these places without using the in-place extension?
Yes, I'll do it soon if nobody beats me.
Santi
Previous: Marcel KoeppenNext: Marcel Koeppen
Message 5 of 7 in “Fix sed syntax in t7502-commit for OSX”
  1. Fix sed syntax in t7502-commit for OSXMarcel Koeppen, May 15, 2008
  2. Junio C HamanoMay 15, 2008
  3. Holger SchurigMay 15, 2008
  4. Marcel KoeppenMay 15, 2008
  5. Santi BéjarMay 15, 2008
  6. Replace in-place sed in t7502-commitMarcel Koeppen, May 16, 2008
  7. Jeff KingMay 16, 2008

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.