mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-15 21:43:09 +01:00
34 lines
674 B
Plaintext
34 lines
674 B
Plaintext
%test
|
|
|
|
print -r -- 'print Started functrace.zsh
|
|
module_path=(./Modules)
|
|
print $LINENO + $functrace + $funcsourcetrace
|
|
:
|
|
fn() {
|
|
print Inside function $0
|
|
print $LINENO + $functrace + $funcsourcetrace
|
|
}
|
|
:
|
|
fn
|
|
:
|
|
fpath=(. $fpath)
|
|
:
|
|
echo '\''print Inside $0
|
|
print $LINENO + $functrace + $funcsourcetrace
|
|
'\'' >autofn
|
|
:
|
|
autoload autofn
|
|
:
|
|
autofn
|
|
autofn' >functrace.zsh
|
|
$ZTST_testdir/../Src/zsh +Z -f ./functrace.zsh
|
|
0:Function tracing
|
|
>Started functrace.zsh
|
|
>3 + +
|
|
>Inside function fn
|
|
>2 + ./functrace.zsh:10 + ./functrace.zsh:5
|
|
>Inside autofn
|
|
>2 + ./functrace.zsh:20 + ./autofn:0
|
|
>Inside autofn
|
|
>2 + ./functrace.zsh:21 + ./autofn:0
|