From 420bfcfc66d7419632068f1b8e3a368198ecab7f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sat, 27 Jun 2015 17:46:03 +0100 Subject: 35623: All is_array assignments should be treated as having a value. --- Test/B02typeset.ztst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Test/B02typeset.ztst') diff --git a/Test/B02typeset.ztst b/Test/B02typeset.ztst index 5d69e5dc2..4c033cce7 100644 --- a/Test/B02typeset.ztst +++ b/Test/B02typeset.ztst @@ -691,3 +691,19 @@ >4 one umm er five >2 one five >4 nothing to see here + + array=(no really nothing here) + fn() { + typeset array=() array[2]=two array[4]=four + typeset -p array + typeset array=() array[3]=three array[1]=one + typeset -p array + } + fn + print $array +0:setting empty array in typeset +>typeset -a array +>array=('' two '' four) +>typeset -a array +>array=(one '' three) +>no really nothing here -- cgit 1.4.1