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