[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22181: endless loop in grep 2.22

From: Jim Meyering
Subject: bug#22181: endless loop in grep 2.22
Date: Sat, 9 Jan 2016 01:21:33 -0800

On Fri, Jan 8, 2016 at 6:53 PM, Paul Eggert <address@hidden> wrote:
> Jim Meyering wrote:
>> It was trivial: printf does not necessarily support \xHH hexadecimal
>> escapes.
> Thanks for catching that. I looked and found one other problem of that kind.
> I tried running the tests on Solaris and AIX and found a few more porting
> issues in the grep tests, and installed the attached.

Hah! TIL head -N and yes are not portable. Thank you.
I've been spoiled/corrupted by writing coreutils tests for so long.

I would prefer to continue to use "yes" via the following, at least
in the first test. That way is clearer. In the second, I could go either
way, since your awk process replaces both yes and head, at the
expense of being a bit less concise and less readable.

What do you think of this patch?

Attachment: 0001-tests-do-use-yes-but-via-an-AWK-replacement.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]