Skip to contentSkip to conversation

cg-mkpatch uses non-portable "tac" command

BUG Randal L. Schwartz 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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 <>' |

Signature · 4 lines
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <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!
#1 lore raw

Dear diary, on Mon, Nov 21, 2005 at 05:10:08PM CET, I got a letter where "Randal L. Schwartz" <[email protected]> said that...

Quoted 1 line

cg-mkpatch uses "tac" to reverse some lines. This is not a POSIX command.

Thanks, fixed.

Signature · 4 lines
				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.