bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug Report: \y, \B, \<, \> do not work with _


From: Servatius Brandt
Subject: Bug Report: \y, \B, \<, \> do not work with _
Date: Fri, 01 Dec 2000 12:09:03 +0100
User-agent: Mozilla/5.0 (Windows; U; Win95; en-US; m18) Gecko/20001108 Netscape6/6.0

Hello,

The \y, \B, \<, \> patterns do not regard _ as
word-constituent (unlike \w and \W, which do).

Operating system: ReliantUNIX-Y 5.44 C2001 RM600 R10000
Version of gawk: 3.0.6
C-Compiler: Fujitsu Siemens Computers CDS++ V2.0C0004

Test program:

#!/usr/local/bin/gawk -f

BEGIN {
    print match("X _abc Y", /\<_abc/)              # bug
    print match("X _abc Y", /\y_abc/)         # bug
    print match("X abc_ Y", /abc_\>/)              # bug
    print match("X abc_ Y", /abc_\y/)         # bug
    print match("X abc_def Y", /abc_\Bdef/)   # bug

    print match("X a_c Y", /a\wc/)            # ok!
    print match("X a.c Y", /a\Wc/)            # ok!
    exit
}


Regards,
Servatius Brandt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]