[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#16871: problems about matching newline (with -z)
From: |
Paul Eggert |
Subject: |
bug#16871: problems about matching newline (with -z) |
Date: |
Thu, 24 Apr 2014 21:27:38 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
Stephane Chazelas wrote:
The doc has a confusing statement ... Same confusion in tests/pcre:
Thanks, I installed the attached patch to fix those.
We can match a newline with grep -zP 'a\nb' (or '\x0a' or '\012'
or '[\n]'...) but not easily without -P. Same for NUL
characters.
Yes, that's a downside of the POSIX notation, and it'd be nice to extend
POSIX to allow easy matching for newlines and/or null bytes. I'll mark
this bug report as a wishlist bug.
0001-misc-fix-doc-and-test-bugs-re-grep-z.patch
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#16871: problems about matching newline (with -z),
Paul Eggert <=