diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-11-10 09:59:26 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-11-10 09:59:26 +0000 |
commit | 254b3f1a6b85e6cfefe21fea3d81c3f97c003ec2 (patch) | |
tree | 08450909fc3a75be4a8faa6f3b848473fea5c979 /Doc/Zsh/builtins.yo | |
parent | 7929d97254f84932ab79baf613f3f300ca0a5f84 (diff) | |
download | zsh-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/builtins.yo')
-rw-r--r-- | Doc/Zsh/builtins.yo | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index 820888ac3..27f91e8b6 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -1252,6 +1252,8 @@ after each command. If var(sig) is tt(0) or tt(EXIT) and the tt(trap) statement is executed inside the body of a function, then the command var(arg) is executed after the function completes. +The value of tt($?) at the start of execution is the exit status of the +shell or the return status of the function exiting. If var(sig) is tt(0) or tt(EXIT) and the tt(trap) statement is not executed inside the body of a function, then the command var(arg) is executed when the shell terminates. |