GNU bug report logs - #22181
endless loop in grep 2.22

Previous Next

Package: grep;

Reported by: Christian Boltz <grep-bug <at> cboltz.de>

Date: Tue, 15 Dec 2015 20:47:01 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #37 received at 22181 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Christian Boltz <grep-bug <at> cboltz.de>, 22181 <at> debbugs.gnu.org,
 Seth Arnold <seth.arnold <at> canonical.com>
Subject: Re: bug#22181: endless loop in grep 2.22
Date: Sat, 9 Jan 2016 01:21:33 -0800
[Message part 1 (text/plain, inline)]
On Fri, Jan 8, 2016 at 6:53 PM, Paul Eggert <eggert <at> cs.ucla.edu> 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?
[0001-tests-do-use-yes-but-via-an-AWK-replacement.patch (text/x-patch, attachment)]

This bug report was last modified 9 years and 133 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.