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