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