diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2016-08-12 16:10:26 -0700 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2016-08-12 16:10:26 -0700 |
commit | a1a58dde6adaa50625016f4c7048b456b2b99a1c (patch) | |
tree | b54d4de680e05be6feabb863fcc3bd5f2cb12599 /Test | |
parent | 04003e038ae60502e4e1124acb372c75956174dc (diff) | |
download | zsh-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')
-rw-r--r-- | Test/D04parameter.ztst | 5 |
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:${...:?...}, ${...?...} |