This is the mail archive of the
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 at sources dot redhat dot com
- Date: 25 Jan 2005 10:31:48 -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'
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
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.