about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2015-06-27 17:46:03 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2015-06-27 17:46:03 +0100
commit420bfcfc66d7419632068f1b8e3a368198ecab7f (patch)
tree8ccfe457d3fe767267e1df9c8e3c029202a817d9 /Test
parent2f0213d7339e9bf3f5c465854b4452935249f87c (diff)
downloadzsh-420bfcfc66d7419632068f1b8e3a368198ecab7f.tar.gz
zsh-420bfcfc66d7419632068f1b8e3a368198ecab7f.tar.xz
zsh-420bfcfc66d7419632068f1b8e3a368198ecab7f.zip
35623: All is_array assignments should be treated as having a value.
Diffstat (limited to 'Test')
-rw-r--r--Test/B02typeset.ztst16
1 files changed, 16 insertions, 0 deletions
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