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

2 messages from 2005-11-21 to 2005-11-27. Participants: Randal L. Schwartz, Petr Baudis.
Thread: https://gitlist.dev/t/2635

## Randal L. Schwartz, 2005-11-21 16:10

Subject: [BUG] cg-mkpatch uses non-portable "tac" command
Message-ID: <86r79ayobj.fsf@blue.stonehenge.com>
URL: https://gitlist.dev/e/86r79ayobj.fsf%40blue.stonehenge.com

```

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, 2005-11-27 15:08

Subject: Re: [BUG] cg-mkpatch uses non-portable "tac" command
Message-ID: <20051127150805.GI22159@pasky.or.cz>
URL: https://gitlist.dev/e/20051127150805.GI22159%40pasky.or.cz
In-Reply-To: <86r79ayobj.fsf@blue.stonehenge.com>

```
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.

```
