Debian Codegraph @

test/gnuops2.awk

raw
1 # From [email protected] Fri Dec 1 13:44:48 2000
2 # Received: from mail.actcom.co.il
3 # by localhost with POP3 (fetchmail-5.1.0)
4 # for arnold@localhost (single-drop); Fri, 01 Dec 2000 13:44:48 +0200 (IST)
5 # Received: by actcom.co.il (mbox arobbins)
6 # (with Cubic Circle's cucipop (v1.31 1998/05/13) Fri Dec 1 13:44:10 2000)
7 # X-From_: [email protected] Fri Dec 1 13:11:23 2000
8 # Received: from lmail.actcom.co.il by actcom.co.il with ESMTP
9 # (8.9.1a/actcom-0.2) id NAA11033 for <[email protected]>;
10 # Fri, 1 Dec 2000 13:11:21 +0200 (EET)
11 # (rfc931-sender: lmail.actcom.co.il [192.114.47.13])
12 # Received: from billohost.com (10-209.196.35.dellhost.com [209.196.35.10] (may be forged))
13 # by lmail.actcom.co.il (8.9.3/8.9.1) with ESMTP id NAA30286
14 # for <[email protected]>; Fri, 1 Dec 2000 13:12:25 +0200
15 # Received: from fencepost.gnu.org ([email protected] [199.232.76.164])
16 # by billohost.com (8.9.3/8.9.3) with ESMTP id GAA26074
17 # for <[email protected]>; Fri, 1 Dec 2000 06:09:08 -0500
18 # Received: from energy.pdb.sbs.de ([192.109.2.19])
19 # by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
20 # id 141o5z-0000RJ-00; Fri, 01 Dec 2000 06:11:16 -0500
21 # Received: from trulli.pdb.fsc.net ([172.25.96.20])
22 # by energy.pdb.sbs.de (8.9.3/8.9.3) with ESMTP id MAA32687;
23 # Fri, 1 Dec 2000 12:11:13 +0100
24 # Received: from pdbrd02e.pdb.fsc.net (pdbrd02e.pdb.fsc.net [172.25.96.15])
25 # by trulli.pdb.fsc.net (8.9.3/8.9.3) with ESMTP id MAA27384;
26 # Fri, 1 Dec 2000 12:11:13 +0100
27 # Received: from Fujitsu-Siemens.com (pgtd1181.mch.fsc.net [172.25.126.152]) by pdbrd02e.pdb.fsc.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
28 # id XC2QLXS2; Fri, 1 Dec 2000 12:11:13 +0100
29 # Message-ID: <[email protected]>
30 # Date: Fri, 01 Dec 2000 12:09:03 +0100
31 # From: Servatius Brandt <[email protected]>
32 # Organization: Fujitsu Siemens Computers
33 # User-Agent: Mozilla/5.0 (Windows; U; Win95; en-US; m18) Gecko/20001108 Netscape6/6.0
34 # X-Accept-Language: de, en
35 # MIME-Version: 1.0
36 # To: [email protected]
37 # CC: [email protected]
38 # Subject: Bug Report: \y, \B, \<, \> do not work with _
39 # Content-Type: text/plain; charset=us-ascii; format=flowed
40 # Content-Transfer-Encoding: 7bit
41 # Status: R
42 #
43 # Hello,
44 #
45 # The \y, \B, \<, \> patterns do not regard _ as
46 # word-constituent (unlike \w and \W, which do).
47 #
48 # Operating system: ReliantUNIX-Y 5.44 C2001 RM600 R10000
49 # Version of gawk: 3.0.6
50 # C-Compiler: Fujitsu Siemens Computers CDS++ V2.0C0004
51 #
52 # Test program:
53 #
54 #!/usr/local/bin/gawk -f
55
56 BEGIN {
57 print match("X _abc Y", /\<_abc/) # bug
58 print match("X _abc Y", /\y_abc/) # bug
59 print match("X abc_ Y", /abc_\>/) # bug
60 print match("X abc_ Y", /abc_\y/) # bug
61 print match("X abc_def Y", /abc_\Bdef/) # bug
62
63 print match("X a_c Y", /a\wc/) # ok!
64 print match("X a.c Y", /a\Wc/) # ok!
65 exit
66 }
67 #
68 #
69 # Regards,
70 # Servatius Brandt
71 #
72 #