about summary refs log tree commit diff
path: root/Test/B04read.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-08-28 17:06:27 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-08-28 17:06:27 +0000
commitaf071465b1ef324f35741c681529f39b88a95f51 (patch)
tree066e6aa41be4adba75bfda54055332a120264e16 /Test/B04read.ztst
parentca7269e82da4175557b9ed1fc19389f693581b35 (diff)
downloadzsh-af071465b1ef324f35741c681529f39b88a95f51.tar.gz
zsh-af071465b1ef324f35741c681529f39b88a95f51.tar.xz
zsh-af071465b1ef324f35741c681529f39b88a95f51.zip
29731: fix read -AE, test that and read -Ae
Diffstat (limited to 'Test/B04read.ztst')
-rw-r--r--Test/B04read.ztst17
1 files changed, 17 insertions, 0 deletions
diff --git a/Test/B04read.ztst b/Test/B04read.ztst
index ad427dc0d..25c3d4173 100644
--- a/Test/B04read.ztst
+++ b/Test/B04read.ztst
@@ -93,3 +93,20 @@
   read foo) <<<bar
 1:return status on failing to set parameter
 ?(eval):2: read-only variable: foo
+
+  read -AE array <<<'one two three'
+  print ${(j.:.)array}
+0:Behaviour of -A and -E combination
+>one
+>two
+>three
+>one:two:three
+
+  array=()
+  read -Ae array <<<'four five six'
+  print ${(j.:.)array}
+0:Behaviour of -A and -e combination
+>four
+>five
+>six
+>