about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-09-20 14:35:19 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-09-20 14:35:19 +0000
commit7d3d6f4a5a0844b13c729df432b04ba8f60ad477 (patch)
tree87da2648b3a9015edeeda645d23bdd96c20623b1 /Src
parent5741e2840f4f905722f453d10a8efcd2486fd9fc (diff)
downloadzsh-7d3d6f4a5a0844b13c729df432b04ba8f60ad477.tar.gz
zsh-7d3d6f4a5a0844b13c729df432b04ba8f60ad477.tar.xz
zsh-7d3d6f4a5a0844b13c729df432b04ba8f60ad477.zip
20391: SHLVL wasn't updated in environment
Diffstat (limited to 'Src')
-rw-r--r--Src/params.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/params.c b/Src/params.c
index 7ba0359b7..98888e7b0 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -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();