From: Johannes Schindelin Date: Wed, 22 Jul 2015 09:52:32 GMT Subject: Re: [PATCH 2/2] Fix sed usage in tests to work around broken xpg4/sed on Solaris Message-ID: <9b162fbacc41120c8c6edc053a017ba5@www.dscho.org> In-Reply-To: Hi, On 2015-07-20 18:07, Junio C Hamano wrote: > Johannes Sixt 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