Blame test/ofmtfidl.awk

Packit 575503
# From djones@zoonami.com  Wed Jun 13 17:46:27 2001
Packit 575503
# Received: from mail.actcom.co.il [192.114.47.13]
Packit 575503
# 	by localhost with POP3 (fetchmail-5.5.0)
Packit 575503
# 	for arnold@localhost (single-drop); Wed, 13 Jun 2001 17:46:27 +0300 (IDT)
Packit 575503
# Received: by actcom.co.il (mbox arobbins)
Packit 575503
#  (with Cubic Circle's cucipop (v1.31 1998/05/13) Wed Jun 13 17:47:09 2001)
Packit 575503
# X-From_: djones@zoonami.com Wed Jun 13 17:45:40 2001
Packit 575503
# Received: from lmail.actcom.co.il by actcom.co.il  with ESMTP
Packit 575503
# 	(8.9.1a/actcom-0.2) id RAA07057 for <arobbins@actcom.co.il>;
Packit 575503
# 	Wed, 13 Jun 2001 17:45:34 +0300 (EET DST)  
Packit 575503
# 	(rfc931-sender: mail.actcom.co.il [192.114.47.13])
Packit 575503
# Received: from billohost.com (www.billohost.com [209.196.35.10])
Packit 575503
# 	by lmail.actcom.co.il (8.11.2/8.11.2) with ESMTP id f5DEjSO24028
Packit 575503
# 	for <arobbins@actcom.co.il>; Wed, 13 Jun 2001 17:45:33 +0300
Packit 575503
# Received: from fencepost.gnu.org (fencepost.gnu.org [199.232.76.164])
Packit 575503
# 	by billohost.com (8.9.3/8.9.3) with ESMTP id KAA24625
Packit 575503
# 	for <arnold@skeeve.com>; Wed, 13 Jun 2001 10:44:43 -0400
Packit 575503
# Received: from topcat.zoonami.com ([193.112.141.198])
Packit 575503
# 	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
Packit 575503
# 	id 15ABtZ-0000FQ-00
Packit 575503
# 	for <bug-gawk@gnu.org>; Wed, 13 Jun 2001 10:45:21 -0400
Packit 575503
# Received: from topcat.zoonami.com (localhost [127.0.0.1])
Packit 575503
# 	by topcat.zoonami.com (8.9.3/8.9.3) with ESMTP id OAA28329;
Packit 575503
# 	Wed, 13 Jun 2001 14:45:54 GMT
Packit 575503
# 	(envelope-from djones@topcat.zoonami.com)
Packit 575503
# Message-Id: <200106131445.OAA28329@topcat.zoonami.com>
Packit 575503
# To: bug-gawk@gnu.org
Packit 575503
# cc: David Jones <drj@pobox.com>
Packit 575503
# Subject: 3.1.0 core dumps.  Fiddling with OFMT?
Packit 575503
# Date: Wed, 13 Jun 2001 14:45:54 +0000
Packit 575503
# From: David Jones <djones@zoonami.com>
Packit 575503
# Status: R
Packit 575503
# 
Packit 575503
# The following program causes gawk to dump core:
Packit 575503
# 
Packit 575503
# jot 10|./gawk '{OFMT="%."NR"f";print NR}'
Packit 575503
# 
Packit 575503
# 'jot 10', if you didn't know, produces the numbers 1 to 10 each on its
Packit 575503
# own line (ie it's like awk 'BEGIN{for(i=1;i<=10;++i)print i}')
Packit 575503
# 
Packit 575503
# Here's an example run:
Packit 575503
# 
Packit 575503
# -- run being
Packit 575503
# 1
Packit 575503
# 2
Packit 575503
# 3
Packit 575503
# 4
Packit 575503
# gawk: cmd. line:1: (FILENAME=- FNR=5) fatal error: internal error
Packit 575503
# Abort trap - core dumped
Packit 575503
# -- run end
Packit 575503
# 
Packit 575503
# Ah.  print NR appears to be not interesting.  The following program also
Packit 575503
# has the same problem:
Packit 575503
# 
Packit 575503
# jot 10|./gawk '{OFMT="%."NR"f"}'
Packit 575503
# 
Packit 575503
# Cheers,
Packit 575503
#  djones
Packit 575503
# (version info follows)
Packit 575503
# 
Packit 575503
# I'm running on FreeBSD 4.1, here's the output of uname -a
Packit 575503
# 
Packit 575503
# FreeBSD topcat.zoonami.com 4.1-RELEASE FreeBSD 4.1-RELEASE #0: Fri Jul 28 14:30:31 GMT 2000     jkh@ref4.freebsd.org:/usr/src/sys/compile/GENERIC  i386
Packit 575503
# 
Packit 575503
# And ./gnu --version
Packit 575503
# 
Packit 575503
# GNU Awk 3.1.0
Packit 575503
# Copyright (C) 1989, 1991-2001 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
{ OFMT="%."NR"f"; print NR }