Re: [PATCH] rebase--interactive: Replace unportable 'tac' by a sed script.
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 28, 2008, 08:19 UTC
- Message-ID
- <7v7ieie6hm.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <48158070.7090007@viscovery.net>
Johannes Sixt <j.sixt@viscovery.net> writes:
Show 12 quoted lines
> From: Johannes Sixt <johannes.sixt@telecom.at> > > Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at> > --- > 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.