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 /Src | |
parent | d6a32ddeed914434f5b56b013c9d03b28781d065 (diff) | |
download | zsh-1cd802357096b60561b1a50c0c23ab357bbc0de3.tar.gz zsh-1cd802357096b60561b1a50c0c23ab357bbc0de3.tar.xz zsh-1cd802357096b60561b1a50c0c23ab357bbc0de3.zip |
34064: assignment before command replaces array with export even when KSH_ARRAYS
Diffstat (limited to 'Src')
-rw-r--r-- | Src/exec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/exec.c b/Src/exec.c index eaf73df25..6b93008bd 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -2294,6 +2294,8 @@ addvars(Estate state, Wordcode pc, int addflags) } allexp = opts[ALLEXPORT]; opts[ALLEXPORT] = 1; + if (isset(KSHARRAYS)) + unsetparam(name); pm = assignsparam(name, val, myflags); opts[ALLEXPORT] = allexp; } else |