From 01f5d0a2741ed45f3c85493e88daafc2091259a9 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 12 Aug 2008 20:25:14 +0000 Subject: 25443 (tweaked): allow $functrace to show sourced files --- Doc/Zsh/mod_parameter.yo | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Doc') diff --git a/Doc/Zsh/mod_parameter.yo b/Doc/Zsh/mod_parameter.yo index d3ace6df0..0e096c968 100644 --- a/Doc/Zsh/mod_parameter.yo +++ b/Doc/Zsh/mod_parameter.yo @@ -173,6 +173,9 @@ or `var(name) tt(LPAR()RPAR())' started. In the case of an autoloaded function in native zsh format where only the body of the function occurs in the file the line number is reported as zero. The format of each element is var(filename)tt(:)var(lineno). +For files that have been executed by the tt(source) or tt(.) builtins +(in which case there is no separate definition) the trace information is +shown as tt(source:0). ) vindex(funcstack) item(tt(funcstack))( @@ -185,5 +188,7 @@ item(tt(functrace))( This array contains the names and line numbers of the callers corresponding to the functions currently being executed. The format of each element is var(name)tt(:)var(lineno). +Callers are also shown for sourced files; the caller is the point +where the tt(source) or tt(.) command was executed. ) enditem() -- cgit 1.4.1