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

Re: [PATCH 2/2] Fix sed usage in tests to work around broken xpg4/sed on Solaris

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 22, 2015, 09:52 UTC
Message-ID
<9b162fbacc41120c8c6edc053a017ba5@www.dscho.org>
In-Reply-To
<xmqqd1zmzuc7.fsf@gitster.dls.corp.google.com>
Hi,
On 2015-07-20 18:07, Junio C Hamano wrote:
Show 17 quoted lines
> Johannes Sixt <j6t@kdbg.org> writes:
> 
>>> I really wonder why the previous ">file+ && mv -f file+ file" dance
>>> needs to be replaced?
>>
>> The sed must be replaced because some versions on Solaris choke on the
>> incomplete last line in the file.
> 
> Switching from sed to perl is not being questioned.
> 
> I think Dscho is asking about the use of "-i", when the original
> idiom ">target+ && mv -f target+ target" worked perfectly fine.
> 
> I.e.
> 
> 	perl -p -e '...' file >file+ &&
>         mv file+ file
Thanks for translating from Dscho to English.

Ciao, Dscho

Previous: Junio C Hamano
Message 7 of 7 in “Fix sed usage in tests to work around broken xpg4/sed on Solaris”
  1. 2/2 Fix sed usage in tests to work around broken xpg4/sed on SolarisBen Walton, Jul 18, 2015
  2. Eric SunshineJul 19, 2015
  3. Johannes SixtJul 19, 2015
  4. Johannes SchindelinJul 19, 2015
  5. Johannes SixtJul 19, 2015
  6. Junio C HamanoJul 20, 2015
  7. Johannes SchindelinJul 22, 2015

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.