GNU bug report logs - #25499
[PATCH] grep: fix matching not longest pattern with grep -Fo

Previous Next

Package: grep;

Reported by: Norihiro Tanaka <noritnk <at> kcn.ne.jp>

Date: Sat, 21 Jan 2017 09:16:02 UTC

Severity: normal

Tags: patch

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#25499: closed ([PATCH] grep: fix matching not longest pattern
 with grep -Fo)
Date: Sun, 22 Jan 2017 01:13:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 21 Jan 2017 17:11:50 -0800
with message-id <CA+8g5KHoCQTbXH9WW4jq1X5-3RPmPQygy9c-3aLZx+ZNrkHbjQ <at> mail.gmail.com>
and subject line Re: bug#25499: [PATCH] grep: fix matching not longest pattern with grep -Fo
has caused the debbugs.gnu.org bug report #25499,
regarding [PATCH] grep: fix matching not longest pattern with grep -Fo
to be marked as done.

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


-- 
25499: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=25499
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
To: <bug-grep <at> gnu.org>
Subject: [PATCH] grep: fix matching not longest pattern with grep -Fo
Date: Sat, 21 Jan 2017 18:14:48 +0900
[Message part 3 (text/plain, inline)]
grep -Fo may not match longest pattern in grep 2.26 or later including
current master.

$ printf 'abce\n' > in
$ printf 'abcd\nc\nbce\n' > pat
$ LC_ALL=C src/grep -Fof pat in
c

We expect "bce" in this case.
[0001-grep-fix-matching-not-longest-pattern-with-grep-Fo.patch (text/plain, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Jim Meyering <jim <at> meyering.net>
To: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
Cc: 25499-done <at> debbugs.gnu.org
Subject: Re: bug#25499: [PATCH] grep: fix matching not longest pattern with
 grep -Fo
Date: Sat, 21 Jan 2017 17:11:50 -0800
On Sat, Jan 21, 2017 at 5:09 PM, Norihiro Tanaka <noritnk <at> kcn.ne.jp> wrote:
>
> On Sat, 21 Jan 2017 08:09:00 -0800
> Jim Meyering <jim <at> meyering.net> wrote:
>
>> Nice. I am glad you caught that.
>> I've adjusted some wording and will push this soon:
>
> Thanks for replying and adjusting quickly.  Your adjustment is also very
> useful for me to learn English.

Pushed.


This bug report was last modified 8 years and 202 days ago.

Previous Next


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