emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#20957: closed (2.21 bug in handling at least one -


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#20957: closed (2.21 bug in handling at least one -P regular expression)
Date: Fri, 03 Jul 2015 15:24:02 +0000

Your message dated Fri, 03 Jul 2015 08:23:43 -0700
with message-id <address@hidden>
and subject line Re: bug#20957: 2.21 bug in handling at least one -P regular 
expression
has caused the debbugs.gnu.org bug report #20957,
regarding 2.21 bug in handling at least one -P regular expression
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
20957: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20957
GNU Bug Tracking System
Contact address@hidden with problems
--- 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.

Attachment: 0001-grep-don-t-mishandle-left-context-in-P.patch
Description: Text Data

Attachment: 0002-grep-simplify-print_line_middle-slightly.patch
Description: Text Data


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]