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


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

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 1 (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)]

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.