diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-11-09 11:04:10 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-11-09 11:04:10 +0000 |
commit | 7929d97254f84932ab79baf613f3f300ca0a5f84 (patch) | |
tree | 1f44eab4f8f8ce8792d3bee7a716878abd6948bb /Doc/Zsh | |
parent | 434d55da8b2b52da5c22f918cb182839b4b7222d (diff) | |
download | zsh-7929d97254f84932ab79baf613f3f300ca0a5f84.tar.gz zsh-7929d97254f84932ab79baf613f3f300ca0a5f84.tar.xz zsh-7929d97254f84932ab79baf613f3f300ca0a5f84.zip |
22984: add zshexit hook
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/func.yo | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/Zsh/func.yo b/Doc/Zsh/func.yo index 5fac56aac..74d031fd1 100644 --- a/Doc/Zsh/func.yo +++ b/Doc/Zsh/func.yo @@ -203,6 +203,14 @@ size-limited version of the command (with things like function bodies elided); the third argument contains the full text that is being executed. ) +findex(zshexit) +vindex(zshexit_functions) +item(tt(zshexit))( +Executed at the point where the main shell is about to exit normally. +This is not called by exiting subshells, nor when the tt(exec) +precommand modifier is used before an external command. Also, unlike +tt(TRAPEXIT), it is not called when functions exit. +) item(tt(TRAP)var(NAL))( cindex(signals, trapping) cindex(trapping signals) |