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

2017-01-24 Thread Norihiro Tanaka
On Mon, 23 Jan 2017 11:43:55 -0800 Jim Meyering wrote: > I've just noticed that fgrep-longest was not listed in Makefile.am's > lists of tests, so have added it with this: > > > http://git.savannah.gnu.org/cgit/grep.git/commit/?id=b2e0f3f86c6ff948c9b37668af762ea90f06e401 Thanks.

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

2017-01-23 Thread Jim Meyering
On Sat, Jan 21, 2017 at 5:11 PM, Jim Meyering wrote: > On Sat, Jan 21, 2017 at 5:09 PM, Norihiro Tanaka wrote: >> >> On Sat, 21 Jan 2017 08:09:00 -0800 >> Jim Meyering wrote: >> >>> Nice. I am glad you caught that. >>> I've adjusted some wording and will push this soon: >> >> Thanks for replying

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

2017-01-21 Thread Jim Meyering
On Sat, Jan 21, 2017 at 5:09 PM, Norihiro Tanaka wrote: > > On Sat, 21 Jan 2017 08:09:00 -0800 > Jim Meyering 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 f

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

2017-01-21 Thread Norihiro Tanaka
On Sat, 21 Jan 2017 08:09:00 -0800 Jim Meyering 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.

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

2017-01-21 Thread Jim Meyering
On Sat, Jan 21, 2017 at 1:14 AM, Norihiro Tanaka 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 y

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

2017-01-21 Thread Norihiro Tanaka
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. From 2e75efbf90869abfeafc0ab9fcd4fa4b453c0b2a Mon Sep 17 00:00:00 2001 From: Norihiro Tanak