Update of bug #27669 (project grep):
Status: None => In Progress
_______________________________________________________
Follow-up Comment #2:
This looks like it was fixed recently, but only in the case when the DFA
matcher is used:
$ perl -e '@a=qw/abc def ghi/; foreach(@a){print "$_n "}' | grep -z ^d[e-g]f
$ perl -e '@a=qw/abc def ghi/; foreach(@a){print "$_n "}' | grep -z ^def
def
For glibc we would probably need a new syntax bit, RE_NULL_NEWLINE.
While doing that, and for the sake of consistency, I'm also tempted to make ^
and $ match newlines in the middle of the NULL-separated record; ` and ' would
still be available to match beginning and ending of record. This is a partial
patch that implements this in dfa.c.
(file #23580)
_______________________________________________________
Additional Item Attachment:
File name: p1.patch Size:3 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?27669>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/