about summary refs log tree commit diff
path: root/Test/D04parameter.ztst
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2016-08-12 16:10:26 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2016-08-12 16:10:26 -0700
commita1a58dde6adaa50625016f4c7048b456b2b99a1c (patch)
treeb54d4de680e05be6feabb863fcc3bd5f2cb12599 /Test/D04parameter.ztst
parent04003e038ae60502e4e1124acb372c75956174dc (diff)
downloadzsh-a1a58dde6adaa50625016f4c7048b456b2b99a1c.tar.gz
zsh-a1a58dde6adaa50625016f4c7048b456b2b99a1c.tar.xz
zsh-a1a58dde6adaa50625016f4c7048b456b2b99a1c.zip
39035: ${(A)name=word} should expand as an array even when there is only one element.
Diffstat (limited to 'Test/D04parameter.ztst')
-rw-r--r--Test/D04parameter.ztst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 460a841c3..37166fa21 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -82,6 +82,11 @@
 >wasnull2d
 >wasnull2d
 
+  unset array
+  print ${#${(A)=array=word}}
+0:${#${(A)=array=word}} counts array elements
+>1
+
   (print ${set1:?okhere}; print ${unset1:?exiting1}; print not reached;)
   (print ${null1?okhere}; print ${null1:?exiting2}; print not reached;)
 1:${...:?...}, ${...?...}