git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Sep 1, 2008, 16:32 UTC
Message-ID
<alpine.DEB.1.00.0809011831200.13830@pacific.mpi-cbg.de.mpi-cbg.de>
In-Reply-To
<41757CC9-DB9B-41C9-A698-E2948F79DC2C@silverinsanity.com>
Hi,
On Mon, 1 Sep 2008, Brian Gernhardt wrote:
> 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.

Please note that using Perl in test scripts is considered less bad than using Perl in a shell script which is part of Git's core.

Ciao, Dscho

Previous: Brian Gernhardt
Message 5 of 5 in “t6013: Avoid using tac”
  1. t6013: Avoid using tacBrian Gernhardt, Aug 31, 2008
  2. t6013: replace use of 'tac' with equivalent PerlThomas Rast, Aug 31, 2008
  3. Andreas EricssonSep 1, 2008
  4. Brian GernhardtSep 1, 2008
  5. Johannes SchindelinSep 1, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.