[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25499: [PATCH] grep: fix matching not longest pattern with grep -Fo
From: |
Jim Meyering |
Subject: |
bug#25499: [PATCH] grep: fix matching not longest pattern with grep -Fo |
Date: |
Sat, 21 Jan 2017 08:09:00 -0800 |
On Sat, Jan 21, 2017 at 1:14 AM, Norihiro Tanaka <address@hidden> wrote:
> 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.
Nice. I am glad you caught that.
I've adjusted some wording and will push this soon:
grep-Fo-longest.diff
Description: Text document