1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00

20391: SHLVL wasn't updated in environment

This commit is contained in:
Peter Stephenson 2004-09-20 14:35:19 +00:00
parent 5741e2840f
commit 7d3d6f4a5a
2 changed files with 7 additions and 2 deletions

@ -1,3 +1,8 @@
2004-09-20 Peter Stephenson <pws@csr.com>
* 20391: Src/params.c: SHLVL didn't get updated in the
environment if it was already present.
2004-09-20 Bart Schaefer <schaefer@zsh.org>
* 20388: Src/Zle/zle_main.c: arrange that "zle internal-widget"

@ -594,8 +594,8 @@ createparamtable(void)
addenv(pm, pm->u.str);
pm = (Param) paramtab->getnode(paramtab, "SHLVL");
sprintf(buf, "%d", (int)++shlvl);
if (!(pm->flags & PM_EXPORTED))
addenv(pm, buf);
/* shlvl value in environment needs updating unconditionally */
addenv(pm, buf);
/* Add the standard non-special parameters */
set_pwd_env();