This is the mail archive of the
glibc-bugs-regex@sources.redhat.com
mailing list for the glibc project.
[Bug regex/693] New: mishandled '\B'
- From: "kasal at ucw dot cz" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs-regex at sources dot redhat dot com
- Date: 25 Jan 2005 10:31:47 -0000
- Subject: [Bug regex/693] New: mishandled '\B'
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
The GNU extension '\B' has always meant non-\b.
The dfa.[ch] code included in grep and gawk still handles it this way.
Try echo ' ' | grep ' \B ' on your system, try gsub(/ \B /,...) in gawk-3.1.1
or gawk '/ B /' with current gawk.
I have checked Perl documentation; it also defines '\B' and non-\b.
But current regex has changed to interpret '\B' as inword space. Try the above
gsub with current awk.
See also http://lists.gnu.org/archive/html/bug-gnu-utils/2005-01/msg00087.html
IMHO, the current regex code is not correct.
--
Summary: mishandled '\B'
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: regex
AssignedTo: gotom at debian dot or dot jp
ReportedBy: kasal at ucw dot cz
CC: glibc-bugs-regex at sources dot redhat dot com,glibc-
bugs at sources dot redhat dot com
http://sources.redhat.com/bugzilla/show_bug.cgi?id=693
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.