Re: [PATCH] rebase--interactive: Replace unportable 'tac' by a sed script.
- From
Paolo Bonzini <bonzini@gnu.org>
- Date
- Apr 28, 2008, 08:58 UTC
- Message-ID
- <4815919C.6060001@gnu.org>
- In-Reply-To
- <7v7ieie6hm.fsf@gitster.siamese.dyndns.org>
Show 7 quoted lines
>> 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.
In fact this script is not portable. :-( Not so much because of its "advanced-ness", but because it loads the entire file in memory, and thus hits the limit on the buffer length of many seds.
Paolo