Re: [PATCH] t6013: replace use of 'tac' with equivalent Perl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Sep 1, 2008, at 8:56 AM, Andreas Ericsson wrote:

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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux