Re: Use of tac in git-rebase--interactive
- From
Jeff King <peff@peff.net>
- Date
- Apr 27, 2008, 06:42 UTC
- Message-ID
- <20080427064250.GA5455@sigill.intra.peff.net>
- In-Reply-To
- <8D73338C-4EC3-4078-8A34-51DAC1842C2B@silverinsanity.com>
On Sun, Apr 27, 2008 at 02:24:18AM -0400, Brian Gernhardt wrote:
Show 6 quoted lines
> The problem is that tac doesn't exist on my OS X system. I do appear to > have a rev command which does the same thing. Simply posting a patch that > does 472s/tac/rev/ would fix the problem on my system, but the fact that > this is an issue raises the question of the relative portability of the > two commands. I don't think we have a declared dependancy on GNU's > coreutils, which is where Debian lists tac as coming from.
I know the list will be shocked to hear that Solaris has neither.
An easy perl replacement is:
perl -e 'print reverse <>'
which should work fine for small-ish input (since it puts the whole thing in memory).
-Peff