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: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned 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
  • -unavailable- added by bonzini (Posted a comment)
  • -unavailable- added by karl (Posted a comment)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 06 Mar 2010 09:08:31 AM UTCbonziniStatusNone=>Fixed
      Open/ClosedOpen=>Closed
      SummaryIn grep -P patterns \\s will match a newline=>In grep -P patterns \s will match a newline
    Fri 04 Dec 2009 10:35:09 PM UTCkarlSummaryIn 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.1-cleanup1