From: Junio C Hamano Date: Mon, 28 Apr 2008 08:19:49 GMT Subject: Re: [PATCH] rebase--interactive: Replace unportable 'tac' by a sed script. Message-ID: <7v7ieie6hm.fsf@gitster.siamese.dyndns.org> In-Reply-To: <48158070.7090007@viscovery.net> Johannes Sixt writes: > From: Johannes Sixt > > Signed-off-by: Johannes Sixt > --- > Brian Gernhardt schrieb: >> - tac | \ >> + perl -e 'print reverse <>' | \ > > Here's my try, which avoids the perl hammer. ;) > ... > - tac | \ > + sed -ne '1!G;$p;h' | \ Thanks for trying, but frankly, I'd prefer the Perl hammer, as any advanced sed scripting tend to be far less portable.