about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2012-03-01 13:00:52 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2012-03-01 13:00:52 +0000
commit7614be7fe1b9a9692a6c8f5c5f471df3ef288366 (patch)
treec15ae5cbd204d26d169923d72a72580a94864b60 /Doc
parent3c3d3dc92c3812a7e7de17200ac8a944ad2dea93 (diff)
downloadzsh-7614be7fe1b9a9692a6c8f5c5f471df3ef288366.tar.gz
zsh-7614be7fe1b9a9692a6c8f5c5f471df3ef288366.tar.xz
zsh-7614be7fe1b9a9692a6c8f5c5f471df3ef288366.zip
30303: emulate inside function marked for execution tracing enables xtrace
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/builtins.yo7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index 5d717479a..706c2803f 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -366,6 +366,13 @@ noderef(Compatibility)
 )\
 .
 
+If the tt(emulate) command occurs inside a function that has been
+marked for execution tracing with tt(functions -t) then the tt(xtrace)
+option will be turned on regardless of emulation mode or other options.
+Note that code executed inside the function by the tt(.), tt(source), or
+tt(eval) commands is not considered to be running directly from the
+function, hence does not provoke this behaviour.
+
 If the tt(-R) option is given, all options
 are reset to their default value corresponding to the specified emulation
 mode, except for certain options describing the interactive