[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#22655: grep-2.21 (and git master): --null-data and ranges work in an
From: |
Jim Meyering |
Subject: |
bug#22655: grep-2.21 (and git master): --null-data and ranges work in an odd way (-P works fine) |
Date: |
Sat, 20 Feb 2016 20:23:05 -0800 |
On Sat, Feb 20, 2016 at 8:19 PM, Jim Meyering <address@hidden> wrote:
...
>> The bug also present with PCRE engine:
>>
>> $ printf '12\n34\0' | LC_ALL=en_US.utf-8 grep -z -P '^[1234]*$' | wc -c
>> 6
>> $ printf '12\n34\0' | LC_ALL=en_US.utf-8 grep -z -P '^[1-4]*$' | wc -c
>> 6
>
> Thank you for the analysis and the report.
> I have fixed the regex-oriented problem with the attached
> patch, but not yet the case using -P -z (PCRE + --null-data):
FTR, I've also pushed the attached test-improving patch:
0001-tests-convert-cmd-fail-1-to-returns_-1-cmd-fail-1.patch
Description: Text Data