about summary refs log tree commit diff
path: root/Doc/Zsh/func.yo
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 /Doc/Zsh/func.yo
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 'Doc/Zsh/func.yo')
-rw-r--r--Doc/Zsh/func.yo2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/Zsh/func.yo b/Doc/Zsh/func.yo
index 74d031fd1..16a838f9d 100644
--- a/Doc/Zsh/func.yo
+++ b/Doc/Zsh/func.yo
@@ -248,6 +248,8 @@ findex(TRAPEXIT)
 item(tt(TRAPEXIT))(
 Executed when the shell exits,
 or when the current function exits if defined inside a function.
+The value of tt($?) at the start of execution is the exit status of the
+shell or the return status of the function exiting.
 )
 findex(TRAPZERR)
 findex(TRAPERR)