From 7614be7fe1b9a9692a6c8f5c5f471df3ef288366 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 1 Mar 2012 13:00:52 +0000 Subject: 30303: emulate inside function marked for execution tracing enables xtrace --- Doc/Zsh/builtins.yo | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Doc/Zsh') 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 -- cgit 1.4.1