diff options
author | dana <dana@dana.is> | 2017-12-10 12:17:30 -0600 |
---|---|---|
committer | Peter Stephenson <p.stephenson@samsung.com> | 2018-05-11 09:29:14 +0100 |
commit | 805192311f3426b852026b03e8ca4b421189fcf1 (patch) | |
tree | e1c82fd71cb3ae4e79cdef83d9653b2484851dbc /Test/A06assign.ztst | |
parent | fa441fa20e6d7d93e613f339d0c67ba8b0ab09c4 (diff) | |
download | zsh-805192311f3426b852026b03e8ca4b421189fcf1.tar.gz zsh-805192311f3426b852026b03e8ca4b421189fcf1.tar.xz zsh-805192311f3426b852026b03e8ca4b421189fcf1.zip |
42101 (tweaked): assigning shell status to array was broken
Diffstat (limited to 'Test/A06assign.ztst')
-rw-r--r-- | Test/A06assign.ztst | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Test/A06assign.ztst b/Test/A06assign.ztst index fd2b4177c..f89edb888 100644 --- a/Test/A06assign.ztst +++ b/Test/A06assign.ztst @@ -199,6 +199,41 @@ >a 1 2 3 >a 1 2 3 +# tests of array assignment using lastval ($?) + + true + array=( $? ) + print $array +0:Assign $? to array (true) +>0 + + false + array=( $? ) + print $array +0:Assign $? to array (false) +>1 + + true + typeset array=( $? ) + print $array +0:Assign $? to array with typeset (true) +>0 + + false + typeset array=( $? ) + print $array +0:Assign $? to array with typeset (false) +>1 + + array=( ) + true + array+=( $? ) + false + array+=( $? ) + print $array +0:Append $? to array (true+false) +>0 1 + # tests of var+=scalar s+=foo |