buggrep - Bugs: bug #17264, In grep -P patterns \s will match...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #17264: In grep -P patterns \s will match a newline

Submitter:  None
Submitted:  Wed 02 Aug 2006 06:33:40 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Sat 06 Mar 2010 09:08:31 AM UTC, comment #2: 

Fixed by a14685c2833f7c28a427fecfaf146e0a861d94ba.

(To Karl: these bugs were all due to our implementation).



Thank you for the bug report. This bug has been fixed in the
development sources, which can be downloaded using git from
git://git.sv.gnu.org/grep.git

Paolo Bonzini <bonzini>
Fri 04 Dec 2009 10:35:09 PM UTC, comment #1: 

Is -P really supportable?

Karl Berry <karl>
Group Member
Wed 02 Aug 2006 06:33:40 AM UTC, original submission:  

$ cat foo
foo 1

foo 2
$ grep -P '^\s+foo' foo

foo 2
$ grep -P '^[[:space:]]+foo' foo

foo 2
$ grep '^[[:space:]]+foo' foo
$

In -P mode, ^\s or ^[[:space:]] matches the blank line before 'foo 2'.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bonzini (Posted a comment)
  • -email is unavailable- added by karl (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-03-06 bonzini StatusNone Fixed
        Open/ClosedOpen Closed
        SummaryIn grep -P patterns \\s will match a newline In grep -P patterns \s will match a newline
    2009-12-04 karl SummaryIn grep -P patterns \\s will match a newline In grep -P patterns \s will match a newline

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code