threads / bug / 2635

[BUG] cg-mkpatch uses non-portable "tac" command

Subject: [BUG] cg-mkpatch uses non-portable "tac" command

## tl;dr

2 messages between Nov 21, 2005 and Nov 27, 2005.

replies: 1people: 2as markdown or json

Randal L. Schwartz· Nov 21, 2005, 16:10 UTC · lore
cg-mkpatch uses "tac" to reverse some lines.  This is not a POSIX command.
Since you already presume Perl, you can replace the use of tac with:
        | perl -e 'print reverse <>' |
-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Petr Baudis· Nov 27, 2005, 15:08 UTC · re: Randal L. Schwartz · lore

Re: [BUG] cg-mkpatch uses non-portable "tac" command

Dear diary, on Mon, Nov 21, 2005 at 05:10:08PM CET, I got a letter where "Randal L. Schwartz" <merlyn@stonehenge.com> said that...

> cg-mkpatch uses "tac" to reverse some lines.  This is not a POSIX command.
Thanks, fixed.
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.

← back to recent threads