xref: /illumos-gate/usr/src/test/util-tests/tests/awk/gnu/arrayprm3.awk (revision e6d6c189fa3a95d7aa27bbe0aeacf7c1a6b57c8c)
1*e6d6c189SCody Peter Mello# From spcecdt@armory.com  Fri May  2 13:24:46 2003
2*e6d6c189SCody Peter Mello# Return-Path: <spcecdt@armory.com>
3*e6d6c189SCody Peter Mello# Received: from localhost (skeeve [127.0.0.1])
4*e6d6c189SCody Peter Mello# 	by skeeve.com (8.12.5/8.12.5) with ESMTP id h42AChum021950
5*e6d6c189SCody Peter Mello# 	for <arnold@localhost>; Fri, 2 May 2003 13:24:46 +0300
6*e6d6c189SCody Peter Mello# Received: from actcom.co.il [192.114.47.1]
7*e6d6c189SCody Peter Mello# 	by localhost with POP3 (fetchmail-5.9.0)
8*e6d6c189SCody Peter Mello# 	for arnold@localhost (single-drop); Fri, 02 May 2003 13:24:46 +0300 (IDT)
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) Fri May  2 13:23:37 2003)
11*e6d6c189SCody Peter Mello# X-From_: spcecdt@armory.com Fri May  2 00:43:51 2003
12*e6d6c189SCody Peter Mello# Received: from smtp1.actcom.net.il by actcom.co.il  with ESMTP
13*e6d6c189SCody Peter Mello# 	(8.11.6/actcom-0.2) id h41Lhm500217 for <arobbins@actcom.co.il>;
14*e6d6c189SCody Peter Mello# 	Fri, 2 May 2003 00:43:49 +0300 (EET DST)
15*e6d6c189SCody Peter Mello# 	(rfc931-sender: lmail.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 smtp1.actcom.net.il (8.12.8/8.12.8) with ESMTP id h41LiGcO022817
18*e6d6c189SCody Peter Mello# 	for <arobbins@actcom.co.il>; Fri, 2 May 2003 00:44:18 +0300
19*e6d6c189SCody Peter Mello# Received: from armory.com (deepthought.armory.com [192.122.209.42])
20*e6d6c189SCody Peter Mello# 	by f7.net (8.11.7/8.11.6) with SMTP id h41Lhj106516
21*e6d6c189SCody Peter Mello# 	for <arnold@skeeve.com>; Thu, 1 May 2003 17:43:46 -0400
22*e6d6c189SCody Peter Mello# Date: Thu, 1 May 2003 14:43:45 -0700
23*e6d6c189SCody Peter Mello# From: "John H. DuBois III" <spcecdt@armory.com>
24*e6d6c189SCody Peter Mello# To: Aharon Robbins <arnold@skeeve.com>
25*e6d6c189SCody Peter Mello# Subject: Re: gawk 3.1.2a bug
26*e6d6c189SCody Peter Mello# Message-ID: <20030501214345.GA24615@armory.com>
27*e6d6c189SCody Peter Mello# References: <200305011738.h41Hcg76017565@localhost.localdomain>
28*e6d6c189SCody Peter Mello# Mime-Version: 1.0
29*e6d6c189SCody Peter Mello# Content-Type: text/plain; charset=us-ascii
30*e6d6c189SCody Peter Mello# Content-Disposition: inline
31*e6d6c189SCody Peter Mello# In-Reply-To: <200305011738.h41Hcg76017565@localhost.localdomain>
32*e6d6c189SCody Peter Mello# User-Agent: Mutt/1.3.28i
33*e6d6c189SCody Peter Mello# X-Www: http://www.armory.com./~spcecdt/
34*e6d6c189SCody Peter Mello# Sender: spcecdt@armory.com
35*e6d6c189SCody Peter Mello# X-SpamBouncer: 1.4 (10/07/01)
36*e6d6c189SCody Peter Mello# X-SBClass: OK
37*e6d6c189SCody Peter Mello# Status: RO
38*e6d6c189SCody Peter Mello#
39*e6d6c189SCody Peter Mello# On Thu, May 01, 2003 at 08:38:42PM +0300, Aharon Robbins wrote:
40*e6d6c189SCody Peter Mello# > > That worked, thanks.
41*e6d6c189SCody Peter Mello# >
42*e6d6c189SCody Peter Mello# > Great.  Your report motivated me to find everywhere such additional
43*e6d6c189SCody Peter Mello# > code ought to be needed.  I think I did so.  --Arnold
44*e6d6c189SCody Peter Mello#
45*e6d6c189SCody Peter Mello# Here's another one (perhaps fixed by your additional work):
46*e6d6c189SCody Peter Mello#
47*e6d6c189SCody Peter MelloBEGIN { foo(a) }
48*e6d6c189SCody Peter Mellofunction foo(a) { bar(a); print "" in a }
49*e6d6c189SCody Peter Mellofunction bar(a) { a[""]; }
50*e6d6c189SCody Peter Mello#
51*e6d6c189SCody Peter Mello# Prints 1 with gawk-3.1.1; 0 with 3.1.2a.
52*e6d6c189SCody Peter Mello#
53*e6d6c189SCody Peter Mello# 	John
54*e6d6c189SCody Peter Mello# --
55*e6d6c189SCody Peter Mello# John DuBois  spcecdt@armory.com  KC6QKZ/AE  http://www.armory.com/~spcecdt/
56*e6d6c189SCody Peter Mello#
57