diff options
author | Peter Stephenson <pws@zsh.org> | 2015-06-26 14:55:35 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-06-26 14:55:35 +0100 |
commit | 42b9037ae5c1c62866d4dafee444f578c0335ff7 (patch) | |
tree | 6505195fbad3c646197f3478a89a92c0e977d609 /Test | |
parent | 9265e49ccbe3f52f91be3f6c457a3db0dd2f8fbc (diff) | |
download | zsh-42b9037ae5c1c62866d4dafee444f578c0335ff7.tar.gz zsh-42b9037ae5c1c62866d4dafee444f578c0335ff7.tar.xz zsh-42b9037ae5c1c62866d4dafee444f578c0335ff7.zip |
35613: Handle array slices in typeset
Diffstat (limited to 'Test')
-rw-r--r-- | Test/B02typeset.ztst | 15 |
1 files changed, 15 insertions, 0 deletions
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 |