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
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Open/Closed:  Closed

Discussion

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

 

Attached Files

This item currently has no attached files.

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    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.

     

    History

    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.16-ed84.
    Corresponding source code