Re: [PATCH] t6013: replace use of 'tac' with equivalent Perl
- From
Brian Gernhardt <benji@silverinsanity.com>
- Date
- Sep 1, 2008, 16:05 UTC
- Message-ID
- <41757CC9-DB9B-41C9-A698-E2948F79DC2C@silverinsanity.com>
- In-Reply-To
- <48BBE682.2070000@op5.se>
On Sep 1, 2008, at 8:56 AM, Andreas Ericsson wrote:
Show 11 quoted lines
> Thomas Rast wrote: >> So I would favour this fix. I think this should be ok because we >> depend on Perl anyway. > > If it isn't, you could always do > sed '1!G;h;$!d' > or > sed -n '1!G;h;$p' > instead. > > Both of them are very portable indeed.
I am reminded of the last time I tried to remove a use of tac from git (rebase -i, to be specific). I was yelled at for trying to use perl, and "sed -ne '1!G;$p;h'" turned out to be not portable enough. Eventually the command was re-written not to need the reversal.
Junio seems to think perl is just fine, judging by next, so I guess I'll just give up trying to second guess what the list wants. :-/
~~ Brian