diff options
| author | Bart Schaefer <schaefer@zsh.org> | 2024-02-28 20:40:26 -0800 |
|---|---|---|
| committer | Bart Schaefer <schaefer@zsh.org> | 2024-02-28 20:40:26 -0800 |
| commit | 85172998f499cb789570714ffdd43f1ca3b53e58 (patch) | |
| tree | 793f9ab6e74b256171e5aafa8e778e60fb1ea7f7 /Test/A06assign.ztst | |
| parent | 52622 (tweaked, c.f. 52626): adjust number of columns and drop right-parenthe... (diff) | |
| download | zsh-85172998f499cb789570714ffdd43f1ca3b53e58.tar zsh-85172998f499cb789570714ffdd43f1ca3b53e58.tar.gz zsh-85172998f499cb789570714ffdd43f1ca3b53e58.tar.bz2 zsh-85172998f499cb789570714ffdd43f1ca3b53e58.tar.lz zsh-85172998f499cb789570714ffdd43f1ca3b53e58.tar.xz zsh-85172998f499cb789570714ffdd43f1ca3b53e58.tar.zst zsh-85172998f499cb789570714ffdd43f1ca3b53e58.zip | |
52619 (plus tests): no empty element when appending array to unset scalar
Diffstat (limited to 'Test/A06assign.ztst')
| -rw-r--r-- | Test/A06assign.ztst | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/Test/A06assign.ztst b/Test/A06assign.ztst index f89edb888..3eff5331a 100644 --- a/Test/A06assign.ztst +++ b/Test/A06assign.ztst @@ -296,13 +296,26 @@ # tests of var+=(array) + a= + a+=(1 2 3) + print "${(q@)a}" +0:add array to empty parameter +>'' 1 2 3 + unset a a+=(1 2 3) - print -l $a + print "${(q@)a}" 0:add array to unset parameter ->1 ->2 ->3 +>1 2 3 + + () { + setopt localoptions typeset_to_unset + typeset a + a+=(1 2 3) + print "${(q@)a}" + } +0:add array to declared unset parameter +>1 2 3 a=(a) a+=(b) |
