From 1cd802357096b60561b1a50c0c23ab357bbc0de3 Mon Sep 17 00:00:00 2001 From: Takeshi Banse Date: Sat, 27 Dec 2014 22:05:05 -0800 Subject: 34064: assignment before command replaces array with export even when KSH_ARRAYS --- Src/exec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src/exec.c') 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 -- cgit 1.4.1