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

Submitted by:  None
Submitted on:  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>
Project 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

 

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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    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.6