From b476d89fa279469fd24926db7f2b117a318ff38b Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Sun, 14 Jan 2018 03:07:32 -0800 Subject: 42043: ZSH_DEBUG_CMD should not WARN_CREATE_GLOBAL --- Src/exec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Src/exec.c') diff --git a/Src/exec.c b/Src/exec.c index 38cc24a12..c39680de7 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -1319,7 +1319,9 @@ execlist(Estate state, int dont_change_job, int exiting) noerrexit = NOERREXIT_EXIT | NOERREXIT_RETURN; if (ltype & Z_SIMPLE) /* skip the line number */ pc2++; - pm = setsparam("ZSH_DEBUG_CMD", getpermtext(state->prog, pc2, 0)); + pm = assignsparam("ZSH_DEBUG_CMD", + getpermtext(state->prog, pc2, 0), + 0); exiting = donetrap; ret = lastval; -- cgit 1.4.1