--- Begin Message ---
Subject: |
2.21 bug in handling at least one -P regular expression |
Date: |
Thu, 02 Jul 2015 02:55:28 -0500 |
grep 2.21 incorrectly handles a -P regular expression that 2.20 handled
correctly. Thanks for looking into this.
$ cat file
Here's a line.
This line has one blank line above it.
This line has two blank lines above it.
This line has three blank lines above it.
This line has four blank lines above it.
$ grep-2.20/src/grep -Pzo '(?<=\n\n\n).*' file
This line has two blank lines above it.
This line has three blank lines above it.
This line has four blank lines above it.
$ grep-2.21/src/grep -Pzo '(?<=\n\n\n).*' file
This line has two blank lines above it.
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#20957: 2.21 bug in handling at least one -P regular expression |
Date: |
Fri, 03 Jul 2015 08:23:43 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
address@hidden wrote:
grep 2.21 incorrectly handles a -P regular expression that 2.20 handled
correctly.
Thanks for reporting that. I installed the attached patches. The first fixes
the bug; the second is a minor cleanup.
0001-grep-don-t-mishandle-left-context-in-P.patch
Description: Text Data
0002-grep-simplify-print_line_middle-slightly.patch
Description: Text Data
--- End Message ---