diff options
| author | Takeshi Banse <takebi@laafc.net> | 2014-12-27 22:05:05 -0800 |
|---|---|---|
| committer | Barton E. Schaefer <schaefer@zsh.org> | 2014-12-27 22:05:05 -0800 |
| commit | 1cd802357096b60561b1a50c0c23ab357bbc0de3 (patch) | |
| tree | 7c942915ca8c9d97e085d868bb43ad59395d67bd /Test | |
| parent | 34065: following an "if" condition, do not test lastval for ERR_EXIT until a ... (diff) | |
| download | zsh-1cd802357096b60561b1a50c0c23ab357bbc0de3.tar zsh-1cd802357096b60561b1a50c0c23ab357bbc0de3.tar.gz zsh-1cd802357096b60561b1a50c0c23ab357bbc0de3.tar.bz2 zsh-1cd802357096b60561b1a50c0c23ab357bbc0de3.tar.lz zsh-1cd802357096b60561b1a50c0c23ab357bbc0de3.tar.xz zsh-1cd802357096b60561b1a50c0c23ab357bbc0de3.tar.zst zsh-1cd802357096b60561b1a50c0c23ab357bbc0de3.zip | |
34064: assignment before command replaces array with export even when KSH_ARRAYS
Diffstat (limited to 'Test')
| -rw-r--r-- | Test/A06assign.ztst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Test/A06assign.ztst b/Test/A06assign.ztst index 3c9ea0837..0ad9a0aca 100644 --- a/Test/A06assign.ztst +++ b/Test/A06assign.ztst @@ -433,3 +433,21 @@ >n=(tmpfile1 tmpfile2) >typeset x=tmpfile2 >typeset -E f=4.000000000e+00 + + A=(first second) + A="${A[*]}" /bin/sh -c 'echo $A' + print -l "${A[@]}" +0:command execution with assignments shadowing array parameter +>first second +>first +>second + + setopt ksharrays + A=(first second) + A="${A[*]}" /bin/sh -c 'echo $A' + print -l "${A[@]}" + unsetopt ksharrays +0:command execution with assignments shadowing array parameter with ksharrays +>first second +>first +>second |
