diff options
| author | Barton E. Schaefer <schaefer@zsh.org> | 2018-01-14 03:07:32 -0800 |
|---|---|---|
| committer | Barton E. Schaefer <schaefer@zsh.org> | 2018-01-14 03:07:32 -0800 |
| commit | b476d89fa279469fd24926db7f2b117a318ff38b (patch) | |
| tree | 2c6bfc6cbb7eecd8de6421b8a066f86c5dfd4357 | |
| parent | Fix last commit's ChangeLog. (diff) | |
| download | zsh-b476d89fa279469fd24926db7f2b117a318ff38b.tar zsh-b476d89fa279469fd24926db7f2b117a318ff38b.tar.gz zsh-b476d89fa279469fd24926db7f2b117a318ff38b.tar.bz2 zsh-b476d89fa279469fd24926db7f2b117a318ff38b.tar.lz zsh-b476d89fa279469fd24926db7f2b117a318ff38b.tar.xz zsh-b476d89fa279469fd24926db7f2b117a318ff38b.tar.zst zsh-b476d89fa279469fd24926db7f2b117a318ff38b.zip | |
42043: ZSH_DEBUG_CMD should not WARN_CREATE_GLOBAL
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | Src/exec.c | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2018-01-14 Barton E. Schaefer <schaefer@zsh.org> + + * 42043: Src/exec.c: ZSH_DEBUG_CMD should not WARN_CREATE_GLOBAL + 2018-01-13 Barton E. Schaefer <schaefer@zsh.org> * 42264: Doc/Zsh/expn.yo: Follow-up to previous: Clarify that 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; |
