1 | # From murata@nips.ac.jp Tue Aug 6 08:02:14 2002
|
---|
2 | # Return-Path: <murata@nips.ac.jp>
|
---|
3 | # Received: from localhost (aahz [127.0.0.1])
|
---|
4 | # by skeeve.com (8.11.2/8.11.2) with ESMTP id g7652Ej01784
|
---|
5 | # for <arnold@localhost>; Tue, 6 Aug 2002 08:02:14 +0300
|
---|
6 | # Received: from actcom.co.il [192.114.47.1]
|
---|
7 | # by localhost with POP3 (fetchmail-5.7.4)
|
---|
8 | # for arnold@localhost (single-drop); Mon, 05 Aug 2002 22:02:14 -0700 (PDT)
|
---|
9 | # Received: by actcom.co.il (mbox arobbins)
|
---|
10 | # (with Cubic Circle's cucipop (v1.31 1998/05/13) Tue Aug 6 08:13:06 2002)
|
---|
11 | # X-From_: murata@nips.ac.jp Tue Aug 6 07:26:32 2002
|
---|
12 | # Received: from lmail.actcom.co.il by actcom.co.il with ESMTP
|
---|
13 | # (8.11.6/actcom-0.2) id g764QTu27770 for <arobbins@actcom.co.il>;
|
---|
14 | # Tue, 6 Aug 2002 07:26:30 +0300 (EET DST)
|
---|
15 | # (rfc931-sender: mail.actcom.co.il [192.114.47.13])
|
---|
16 | # Received: from f7.net (consort.superb.net [209.61.216.22])
|
---|
17 | # by lmail.actcom.co.il (8.11.6/8.11.6) with ESMTP id g764QRi04673
|
---|
18 | # for <arobbins@actcom.co.il>; Tue, 6 Aug 2002 07:26:28 +0300
|
---|
19 | # Received: from fencepost.gnu.org (fencepost.gnu.org [199.232.76.164])
|
---|
20 | # by f7.net (8.11.6/8.11.6) with ESMTP id g764QQ920486
|
---|
21 | # for <arnold@skeeve.com>; Tue, 6 Aug 2002 00:26:26 -0400
|
---|
22 | # Received: from ccms.nips.ac.jp ([133.48.72.2])
|
---|
23 | # by fencepost.gnu.org with smtp (Exim 3.35 #1 (Debian))
|
---|
24 | # id 17bvvL-00011b-00
|
---|
25 | # for <bug-gawk@gnu.org>; Tue, 06 Aug 2002 00:26:23 -0400
|
---|
26 | # Received: (from murata@localhost)
|
---|
27 | # by ccms.nips.ac.jp (8.9.3+3.2W/3.7W) id NAA01026;
|
---|
28 | # Tue, 6 Aug 2002 13:26:21 +0900
|
---|
29 | # Date: Tue, 6 Aug 2002 13:26:21 +0900
|
---|
30 | # Message-Id: <200208060426.NAA01026@ccms.nips.ac.jp>
|
---|
31 | # To: bug-gawk@gnu.org
|
---|
32 | # Cc: murata@nips.ac.jp
|
---|
33 | # Subject: Bug Report (gawk)
|
---|
34 | # From: murata@nips.ac.jp (MURATA Yasuhisa)
|
---|
35 | # Mime-Version: 1.0
|
---|
36 | # Content-Type: text/plain; charset=US-ASCII
|
---|
37 | # X-Mailer: mnews [version 1.21PL5] 1999-04/04(Sun)
|
---|
38 | #
|
---|
39 | # Hello, I report a bug.
|
---|
40 | #
|
---|
41 | #
|
---|
42 | # == PROGRAM (filename: atest.awk) ==
|
---|
43 | BEGIN {
|
---|
44 | RS=""
|
---|
45 | }
|
---|
46 |
|
---|
47 | NR==1 {
|
---|
48 | print 1
|
---|
49 | RS="\n"
|
---|
50 | next
|
---|
51 | }
|
---|
52 |
|
---|
53 | NR==2 {
|
---|
54 | print 2
|
---|
55 | RS=""
|
---|
56 | next
|
---|
57 | }
|
---|
58 |
|
---|
59 | NR==3 {
|
---|
60 | print 3
|
---|
61 | RS="\n"
|
---|
62 | next
|
---|
63 | }
|
---|
64 | # ====
|
---|
65 | #
|
---|
66 | # == DATA (filename: atest.txt) ==
|
---|
67 | # 1111
|
---|
68 | #
|
---|
69 | # 2222
|
---|
70 | #
|
---|
71 | # ====
|
---|
72 | # note: last line is "\n".
|
---|
73 | #
|
---|
74 | #
|
---|
75 | # == RUN (gawk) ==
|
---|
76 | # > gawk -f atest.awk atest.txt
|
---|
77 | # 1
|
---|
78 | # 2
|
---|
79 | # (no stop!)
|
---|
80 | # ====
|
---|
81 | #
|
---|
82 | # == RUN (nawk) ==
|
---|
83 | # > nawk -f atest.awk atest.txt
|
---|
84 | # 1
|
---|
85 | # 2
|
---|
86 | # 3
|
---|
87 | # ====
|
---|
88 | #
|
---|
89 | # == VERSION ==
|
---|
90 | # > gawk --version
|
---|
91 | # GNU Awk 3.1.1
|
---|
92 | # Copyright (C) 1989, 1991-2002 Free Software Foundation.
|
---|
93 | #
|
---|
94 | # This program is free software; you can redistribute it and/or modify
|
---|
95 | # it under the terms of the GNU General Public License as published by
|
---|
96 | # the Free Software Foundation; either version 2 of the License, or
|
---|
97 | # (at your option) any later version.
|
---|
98 | #
|
---|
99 | # This program is distributed in the hope that it will be useful,
|
---|
100 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
101 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
102 | # GNU General Public License for more details.
|
---|
103 | #
|
---|
104 | # You should have received a copy of the GNU General Public License
|
---|
105 | # along with this program; if not, write to the Free Software
|
---|
106 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
---|
107 | # ==
|
---|
108 | #
|
---|
109 | # --
|
---|
110 | # MURATA Yasuhisa, Technical Staff
|
---|
111 | # National Institute for Physiological Sciences
|
---|
112 | # E-mail: murata@nips.ac.jp
|
---|