about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-09-11 14:47:18 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-09-11 14:47:18 +0000
commitfb67cd46eafb1301844ed98f1c0e8d2cf8cbdee4 (patch)
tree22da1c3fc195ff6e753c5b0ff66c269ff9fdbe2d /Doc
parent8bb15c139248c9a4c4c0b2a053444e24ab8fc4f4 (diff)
downloadzsh-fb67cd46eafb1301844ed98f1c0e8d2cf8cbdee4.tar.gz
zsh-fb67cd46eafb1301844ed98f1c0e8d2cf8cbdee4.tar.xz
zsh-fb67cd46eafb1301844ed98f1c0e8d2cf8cbdee4.zip
25643: keep DEBUG and ZERR traps in subshells
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/builtins.yo4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index c47ae49e7..8317c9547 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -1330,7 +1330,9 @@ 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.
 
-tt(ZERR), tt(DEBUG), and tt(EXIT) traps are not executed inside other traps.
+tt(ZERR), tt(DEBUG), and tt(EXIT) traps are not executed inside other
+traps.  tt(ZERR) and tt(DEBUG) traps are kept within subshells, while
+other traps are reset.
 
 Note that traps defined with the tt(trap) builtin are slightly different
 from those defined as `tt(TRAP)var(NAL) () { ... }', as the latter have