From a1a58dde6adaa50625016f4c7048b456b2b99a1c Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Fri, 12 Aug 2016 16:10:26 -0700 Subject: 39035: ${(A)name=word} should expand as an array even when there is only one element. --- Test/D04parameter.ztst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Test') 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:${...:?...}, ${...?...} -- cgit 1.4.1