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

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

From
Marcel Koeppen <git-dev@marzelpan.de>
Date
May 15, 2008, 11:06 UTC
Message-ID
<22590A7D-0409-4940-BC2E-776B2189BFEC@marzelpan.de>
In-Reply-To
<200805151058.34774.hs4233@mail.mn-solutions.de>
Am 15.05.2008 um 10:58 schrieb Holger Schurig:
>>> -sed -i '$d' expect
>>> +sed -i -e '$d' expect
>
> perl -pi -e 's/foo/bar/' ???

This does not work with '$d', so we could use sed with a temp instead of the -i extension. Alternatively we could specify the full test fixture instead of editing an old one. This would make the expected results more obvious and the tests would work without assumptions about running order.

Marcel
Previous: Holger SchurigNext: Santi Béjar
Message 4 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.