xref: /illumos-gate/usr/src/test/util-tests/tests/awk/gnu/arrayprm2.awk (revision e6d6c189fa3a95d7aa27bbe0aeacf7c1a6b57c8c)
1*e6d6c189SCody Peter Mello# From spcecdt@armory.com  Wed Apr 30 11:08:48 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 h3U7uZWr015489
5*e6d6c189SCody Peter Mello# 	for <arnold@localhost>; Wed, 30 Apr 2003 11:08:48 +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); Wed, 30 Apr 2003 11:08:48 +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) Wed Apr 30 11:05:01 2003)
11*e6d6c189SCody Peter Mello# X-From_: spcecdt@armory.com Wed Apr 30 04:06:46 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 h3U16iv04111 for <arobbins@actcom.co.il>;
14*e6d6c189SCody Peter Mello# 	Wed, 30 Apr 2003 04:06:45 +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 smtp1.actcom.net.il (8.12.8/8.12.8) with ESMTP id h3U16nEv009589
18*e6d6c189SCody Peter Mello# 	for <arobbins@actcom.co.il>; Wed, 30 Apr 2003 04:06:50 +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.7/8.11.6) with ESMTP id h3U16gj29182
21*e6d6c189SCody Peter Mello# 	for <arnold@skeeve.com>; Tue, 29 Apr 2003 21:06:42 -0400
22*e6d6c189SCody Peter Mello# Received: from monty-python.gnu.org ([199.232.76.173])
23*e6d6c189SCody Peter Mello# 	by fencepost.gnu.org with esmtp (Exim 4.10)
24*e6d6c189SCody Peter Mello# 	id 19Ag3W-00029w-00
25*e6d6c189SCody Peter Mello# 	for bug-gawk@gnu.org; Tue, 29 Apr 2003 21:06:42 -0400
26*e6d6c189SCody Peter Mello# Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
27*e6d6c189SCody Peter Mello# 	id 19Ag1V-0001AN-00
28*e6d6c189SCody Peter Mello# 	for bug-gawk@gnu.org; Tue, 29 Apr 2003 21:04:39 -0400
29*e6d6c189SCody Peter Mello# Received: from deepthought.armory.com ([192.122.209.42] helo=armory.com)
30*e6d6c189SCody Peter Mello# 	by monty-python.gnu.org with smtp (Exim 4.10.13)
31*e6d6c189SCody Peter Mello# 	id 19Ag1V-0001A3-00
32*e6d6c189SCody Peter Mello# 	for bug-gawk@gnu.org; Tue, 29 Apr 2003 21:04:37 -0400
33*e6d6c189SCody Peter Mello# Date: Tue, 29 Apr 2003 18:04:35 -0700
34*e6d6c189SCody Peter Mello# From: "John H. DuBois III" <spcecdt@armory.com>
35*e6d6c189SCody Peter Mello# To: bug-gawk@gnu.org
36*e6d6c189SCody Peter Mello# Subject: gawk 3.1.2a bug
37*e6d6c189SCody Peter Mello# Message-ID: <20030430010434.GA4278@armory.com>
38*e6d6c189SCody Peter Mello# Mime-Version: 1.0
39*e6d6c189SCody Peter Mello# Content-Type: text/plain; charset=us-ascii
40*e6d6c189SCody Peter Mello# Content-Disposition: inline
41*e6d6c189SCody Peter Mello# User-Agent: Mutt/1.3.28i
42*e6d6c189SCody Peter Mello# X-Www: http://www.armory.com./~spcecdt/
43*e6d6c189SCody Peter Mello# Sender: spcecdt@armory.com
44*e6d6c189SCody Peter Mello# X-Spam-Status: No, hits=-7.2 required=5.0
45*e6d6c189SCody Peter Mello# 	tests=SIGNATURE_SHORT_DENSE,SPAM_PHRASE_00_01,USER_AGENT,
46*e6d6c189SCody Peter Mello# 	      USER_AGENT_MUTT
47*e6d6c189SCody Peter Mello# 	version=2.41
48*e6d6c189SCody Peter Mello# X-Spam-Level:
49*e6d6c189SCody Peter Mello# X-SpamBouncer: 1.4 (10/07/01)
50*e6d6c189SCody Peter Mello# X-SBClass: OK
51*e6d6c189SCody Peter Mello# Status: RO
52*e6d6c189SCody Peter Mello#
53*e6d6c189SCody Peter Mello# gawk-3.1.2a 'BEGIN {foo(bar)};function foo(baz){split("x",baz)}'
54*e6d6c189SCody Peter Mello# gawk-3.1.2a: cmd. line:1: fatal: split: second argument is not an array
55*e6d6c189SCody Peter Mello#
56*e6d6c189SCody Peter Mello# 	John
57*e6d6c189SCody Peter Mello# --
58*e6d6c189SCody Peter Mello# John DuBois  spcecdt@armory.com  KC6QKZ/AE  http://www.armory.com/~spcecdt/
59*e6d6c189SCody Peter Mello#
60*e6d6c189SCody Peter MelloBEGIN {
61*e6d6c189SCody Peter Mello	foo(bar)
62*e6d6c189SCody Peter Mello}
63*e6d6c189SCody Peter Mello
64*e6d6c189SCody Peter Mellofunction foo(baz)
65*e6d6c189SCody Peter Mello{
66*e6d6c189SCody Peter Mello	split("x", baz)
67*e6d6c189SCody Peter Mello}
68