From a7f0716ddbcc158463d7aaedc5f866d416deb58c Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 3 Jul 2000 10:10:07 +0000 Subject: 12138: setting arrays in math context --- Test/06arith.ztst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Test') diff --git a/Test/06arith.ztst b/Test/06arith.ztst index 35d1ba494..c72bd5acb 100644 --- a/Test/06arith.ztst +++ b/Test/06arith.ztst @@ -82,3 +82,9 @@ 0:use of scalars to store integers and floats >3.5 >4 + + (( newarray[unsetvar]++ )) + (( newarray[unsetvar]++ )) + print ${(t)newarray} ${#newarray} ${newarray[1]} +0:setting array elements in math context +>array 1 2 -- cgit 1.4.1