1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-15 21:43:09 +01:00
zsh/Test/V06parameter.ztst
2008-08-11 19:22:54 +00:00

38 lines
685 B
Plaintext

%prep
zmodload zsh/parameter
%test
print -r -- 'print Started functrace.zsh
:
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