|
Packit |
575503 |
# From murata@nips.ac.jp Tue Aug 6 08:02:14 2002
|
|
Packit |
575503 |
# Return-Path: <murata@nips.ac.jp>
|
|
Packit |
575503 |
# Received: from localhost (aahz [127.0.0.1])
|
|
Packit |
575503 |
# by skeeve.com (8.11.2/8.11.2) with ESMTP id g7652Ej01784
|
|
Packit |
575503 |
# for <arnold@localhost>; Tue, 6 Aug 2002 08:02:14 +0300
|
|
Packit |
575503 |
# Received: from actcom.co.il [192.114.47.1]
|
|
Packit |
575503 |
# by localhost with POP3 (fetchmail-5.7.4)
|
|
Packit |
575503 |
# for arnold@localhost (single-drop); Mon, 05 Aug 2002 22:02:14 -0700 (PDT)
|
|
Packit |
575503 |
# Received: by actcom.co.il (mbox arobbins)
|
|
Packit |
575503 |
# (with Cubic Circle's cucipop (v1.31 1998/05/13) Tue Aug 6 08:13:06 2002)
|
|
Packit |
575503 |
# X-From_: murata@nips.ac.jp Tue Aug 6 07:26:32 2002
|
|
Packit |
575503 |
# Received: from lmail.actcom.co.il by actcom.co.il with ESMTP
|
|
Packit |
575503 |
# (8.11.6/actcom-0.2) id g764QTu27770 for <arobbins@actcom.co.il>;
|
|
Packit |
575503 |
# Tue, 6 Aug 2002 07:26:30 +0300 (EET DST)
|
|
Packit |
575503 |
# (rfc931-sender: mail.actcom.co.il [192.114.47.13])
|
|
Packit |
575503 |
# Received: from f7.net (consort.superb.net [209.61.216.22])
|
|
Packit |
575503 |
# by lmail.actcom.co.il (8.11.6/8.11.6) with ESMTP id g764QRi04673
|
|
Packit |
575503 |
# for <arobbins@actcom.co.il>; Tue, 6 Aug 2002 07:26:28 +0300
|
|
Packit |
575503 |
# Received: from fencepost.gnu.org (fencepost.gnu.org [199.232.76.164])
|
|
Packit |
575503 |
# by f7.net (8.11.6/8.11.6) with ESMTP id g764QQ920486
|
|
Packit |
575503 |
# for <arnold@skeeve.com>; Tue, 6 Aug 2002 00:26:26 -0400
|
|
Packit |
575503 |
# Received: from ccms.nips.ac.jp ([133.48.72.2])
|
|
Packit |
575503 |
# by fencepost.gnu.org with smtp (Exim 3.35 #1 (Debian))
|
|
Packit |
575503 |
# id 17bvvL-00011b-00
|
|
Packit |
575503 |
# for <bug-gawk@gnu.org>; Tue, 06 Aug 2002 00:26:23 -0400
|
|
Packit |
575503 |
# Received: (from murata@localhost)
|
|
Packit |
575503 |
# by ccms.nips.ac.jp (8.9.3+3.2W/3.7W) id NAA01026;
|
|
Packit |
575503 |
# Tue, 6 Aug 2002 13:26:21 +0900
|
|
Packit |
575503 |
# Date: Tue, 6 Aug 2002 13:26:21 +0900
|
|
Packit |
575503 |
# Message-Id: <200208060426.NAA01026@ccms.nips.ac.jp>
|
|
Packit |
575503 |
# To: bug-gawk@gnu.org
|
|
Packit |
575503 |
# Cc: murata@nips.ac.jp
|
|
Packit |
575503 |
# Subject: Bug Report (gawk)
|
|
Packit |
575503 |
# From: murata@nips.ac.jp (MURATA Yasuhisa)
|
|
Packit |
575503 |
# Mime-Version: 1.0
|
|
Packit |
575503 |
# Content-Type: text/plain; charset=US-ASCII
|
|
Packit |
575503 |
# X-Mailer: mnews [version 1.21PL5] 1999-04/04(Sun)
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# Hello, I report a bug.
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# == PROGRAM (filename: atest.awk) ==
|
|
Packit |
575503 |
BEGIN {
|
|
Packit |
575503 |
RS=""
|
|
Packit |
575503 |
}
|
|
Packit |
575503 |
|
|
Packit |
575503 |
NR==1 {
|
|
Packit |
575503 |
print 1
|
|
Packit |
575503 |
RS="\n"
|
|
Packit |
575503 |
next
|
|
Packit |
575503 |
}
|
|
Packit |
575503 |
|
|
Packit |
575503 |
NR==2 {
|
|
Packit |
575503 |
print 2
|
|
Packit |
575503 |
RS=""
|
|
Packit |
575503 |
next
|
|
Packit |
575503 |
}
|
|
Packit |
575503 |
|
|
Packit |
575503 |
NR==3 {
|
|
Packit |
575503 |
print 3
|
|
Packit |
575503 |
RS="\n"
|
|
Packit |
575503 |
next
|
|
Packit |
575503 |
}
|
|
Packit |
575503 |
# ====
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# == DATA (filename: atest.txt) ==
|
|
Packit |
575503 |
# 1111
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# 2222
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# ====
|
|
Packit |
575503 |
# note: last line is "\n".
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# == RUN (gawk) ==
|
|
Packit |
575503 |
# > gawk -f atest.awk atest.txt
|
|
Packit |
575503 |
# 1
|
|
Packit |
575503 |
# 2
|
|
Packit |
575503 |
# (no stop!)
|
|
Packit |
575503 |
# ====
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# == RUN (nawk) ==
|
|
Packit |
575503 |
# > nawk -f atest.awk atest.txt
|
|
Packit |
575503 |
# 1
|
|
Packit |
575503 |
# 2
|
|
Packit |
575503 |
# 3
|
|
Packit |
575503 |
# ====
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# == VERSION ==
|
|
Packit |
575503 |
# > gawk --version
|
|
Packit |
575503 |
# GNU Awk 3.1.1
|
|
Packit |
575503 |
# Copyright (C) 1989, 1991-2002 Free Software Foundation.
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# This program is free software; you can redistribute it and/or modify
|
|
Packit |
575503 |
# it under the terms of the GNU General Public License as published by
|
|
Packit |
575503 |
# the Free Software Foundation; either version 2 of the License, or
|
|
Packit |
575503 |
# (at your option) any later version.
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# This program is distributed in the hope that it will be useful,
|
|
Packit |
575503 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
575503 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
575503 |
# GNU General Public License for more details.
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# You should have received a copy of the GNU General Public License
|
|
Packit |
575503 |
# along with this program; if not, write to the Free Software
|
|
Packit |
575503 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
Packit |
575503 |
# ==
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# --
|
|
Packit |
575503 |
# MURATA Yasuhisa, Technical Staff
|
|
Packit |
575503 |
# National Institute for Physiological Sciences
|
|
Packit |
575503 |
# E-mail: murata@nips.ac.jp
|