From 42b9037ae5c1c62866d4dafee444f578c0335ff7 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 26 Jun 2015 14:55:35 +0100 Subject: 35613: Handle array slices in typeset --- Test/B02typeset.ztst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Test/B02typeset.ztst') diff --git a/Test/B02typeset.ztst b/Test/B02typeset.ztst index 1548b817b..5d69e5dc2 100644 --- a/Test/B02typeset.ztst +++ b/Test/B02typeset.ztst @@ -676,3 +676,18 @@ >array-local >yes >no + + array=(nothing to see here) + fn() { + typeset array=(one two three four five) + typeset array[2,4]=(umm er) + print ${#array} $array + typeset array[2,3]=() + print ${#array} $array + } + fn + print ${#array} $array +0:can update array slices in typeset +>4 one umm er five +>2 one five +>4 nothing to see here -- cgit 1.4.1