[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #17264] In grep -P patterns s will match a newline
From: |
anonymous |
Subject: |
[bug #17264] In grep -P patterns s will match a newline |
Date: |
Wed, 2 Aug 2006 06:33:42 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060531 Mandriva/1.5.0.4-2.1.20060.SoS (2006.0) Firefox/1.5.0.4 |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=17264>
Summary: In grep -P patterns \s will match a newline
Project: grep
Submitted by: None
Submitted on: Wednesday 08/02/2006 at 06:33 UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
$ 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'.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=17264>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #17264] In grep -P patterns s will match a newline,
anonymous <=