GNU bug report logs - #17617
bug / regression in grep-2.19

Previous Next

Package: grep;

Reported by: Péter Radics <mitchnull <at> gmail.com>

Date: Wed, 28 May 2014 15:31:03 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Jim Meyering <jim <at> meyering.net>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#17617: closed (bug / regression in grep-2.19)
Date: Thu, 29 May 2014 04:30:04 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 28 May 2014 21:29:15 -0700
with message-id <CA+8g5KHLSOa_VHjZpDqRrWCU+QVa1QVhhrrsiUHEuTcDrA73zw <at> mail.gmail.com>
and subject line Re: bug#17617: bug / regression in grep-2.19
has caused the debbugs.gnu.org bug report #17617,
regarding bug / regression in grep-2.19
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
17617: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17617
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Péter Radics <mitchnull <at> gmail.com>
To: bug-grep <at> gnu.org
Subject: bug / regression in grep-2.19
Date: Wed, 28 May 2014 10:46:29 +0200
[Message part 3 (text/plain, inline)]
Hello,

  I've found a problem introduced in the 2.19 version of grep:

[mitch <at> deneb grep-2.19]$ echo "aa" | src/grep -E 'a(b$|c$)' && echo FAIL ||
echo SUCCESS
aa
FAIL


This doesn't fail with 2.18:

[mitch <at> deneb grep-2.18]$  echo "aa" | src/grep -E 'a(b$|c$)' && echo FAIL
|| echo SUCCESS
SUCCESS


Tested on arch-linux (3.14.4-1-ARCH) and freebsd-9
Built with gcc-4.2, gcc-4.9, clang-3.3 and clang-3.4, so it's probably not
a compiler / system lib issue.

Also tested with and without the configure option
" --without-included-regex "

regards,
mitch

ps: make check passes, so a new test case should probably be included, too
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Jim Meyering <jim <at> meyering.net>
To: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
Cc: Peter Radics <mitchnull <at> gmail.com>, 17617-done <at> debbugs.gnu.org
Subject: Re: bug#17617: bug / regression in grep-2.19
Date: Wed, 28 May 2014 21:29:15 -0700
On Wed, May 28, 2014 at 5:50 PM, Jim Meyering <jim <at> meyering.net> wrote:
> On Wed, May 28, 2014 at 4:27 PM, Norihiro Tanaka <noritnk <at> kcn.ne.jp> wrote:
>> Thanks for the report.  I submit a patch to fix and test it.
>>
>> When `is' of `must' is cleared, should be also cleared `begline' and
>> `endline' at OR in dfamust.
>
> Thank you for the quick patch.
> I've made some small changes and will push the following shortly:
...

Pushed.


This bug report was last modified 11 years and 55 days ago.

Previous Next


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