about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-11-10 09:59:26 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-11-10 09:59:26 +0000
commit254b3f1a6b85e6cfefe21fea3d81c3f97c003ec2 (patch)
tree08450909fc3a75be4a8faa6f3b848473fea5c979 /Src
parent7929d97254f84932ab79baf613f3f300ca0a5f84 (diff)
downloadzsh-254b3f1a6b85e6cfefe21fea3d81c3f97c003ec2.tar.gz
zsh-254b3f1a6b85e6cfefe21fea3d81c3f97c003ec2.tar.xz
zsh-254b3f1a6b85e6cfefe21fea3d81c3f97c003ec2.zip
22992: make $? available in exit traps/hooks
22993: slightly more effective _make variable fix
Diffstat (limited to 'Src')
-rw-r--r--Src/builtin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 70de5bcec..85c961e3d 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -4434,6 +4434,7 @@ zexit(int val, int from_where)
 #endif
 	}
     }
+    lastval = val;
     if (sigtrapped[SIGEXIT])
 	dotrap(SIGEXIT);
     callhookfunc("zshexit", NULL, 1);