[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Grep-devel] [PATCH] grep: simplify recent kwset change
From: |
Jim Meyering |
Subject: |
Re: [Grep-devel] [PATCH] grep: simplify recent kwset change |
Date: |
Tue, 24 Jan 2017 07:32:39 -0800 |
On Tue, Jan 24, 2017 at 7:16 AM, Norihiro Tanaka <address@hidden> wrote:
>
> On Mon, 23 Jan 2017 19:37:08 -0800
> Jim Meyering <address@hidden> wrote:
>
>> However, both before and after your change, the following still prints
>> the shorter match:
>>
>> $ echo abcdef|LC_ALL=C grep -Fof <(printf '%s\n' ab bcde)
>> ab
>>
>> It should print "bcde".
>
> No. It should match most left. i.e. "ab" is expected.
Indeed. I see that is due to the leftmost-longest rule.
So there is no problem.