From: Jeff King <peff@peff.net>
To: Brian Gernhardt <benji@silverinsanity.com>
Cc: git list <git@vger.kernel.org>
Subject: Re: Use of tac in git-rebase--interactive
Date: Sun, 27 Apr 2008 02:42:51 -0400 [thread overview]
Message-ID: <20080427064250.GA5455@sigill.intra.peff.net> (raw)
In-Reply-To: <8D73338C-4EC3-4078-8A34-51DAC1842C2B@silverinsanity.com>
On Sun, Apr 27, 2008 at 02:24:18AM -0400, Brian Gernhardt wrote:
> 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
next prev parent reply other threads:[~2008-04-27 6:43 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-27 6:24 Use of tac in git-rebase--interactive Brian Gernhardt
2008-04-27 6:42 ` Jeff King [this message]
2008-04-27 6:55 ` [PATCH] Use perl instead of tac Brian Gernhardt
2008-04-28 7:44 ` [PATCH] rebase--interactive: Replace unportable 'tac' by a sed script Johannes Sixt
2008-04-28 8:19 ` Junio C Hamano
2008-04-28 8:58 ` Paolo Bonzini
2008-04-28 9:04 ` Jeff King
2008-04-28 9:11 ` Andreas Ericsson
2008-04-28 11:46 ` [PATCH] Use perl instead of tac Jörg Sommer
2008-04-28 12:58 ` Randal L. Schwartz
2008-04-28 13:12 ` David Symonds
2008-04-28 13:31 ` Paolo Bonzini
2008-04-28 14:11 ` Brian Gernhardt
2008-04-28 14:22 ` Johannes Schindelin
2008-04-28 15:15 ` Jörg Sommer
2008-04-28 17:26 ` Avery Pennarun
2008-04-28 17:34 ` Matthieu Moy
2008-04-28 17:50 ` Brian Gernhardt
2008-04-28 19:13 ` Brian Gernhardt
2008-04-30 9:02 ` Jörg Sommer
2008-04-30 9:39 ` Jörg Sommer
2008-04-30 16:12 ` Brian Gernhardt
2008-04-30 15:25 ` Brian Gernhardt
2008-05-04 22:13 ` Jörg Sommer
2008-05-06 4:32 ` Brian Gernhardt
2008-04-28 13:46 ` Johannes Schindelin
2008-04-28 14:07 ` Brian Gernhardt
2008-04-28 14:20 ` Johannes Schindelin
2008-04-27 7:33 ` Use of tac in git-rebase--interactive しらいしななこ
2008-04-30 0:25 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080427064250.GA5455@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=benji@silverinsanity.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).