1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-24 17:00:32 +02:00

25677: add %x and %I prompt escapes for shell source code debugging

tidy up interface to doshfunc()
This commit is contained in:
Peter Stephenson 2008-09-16 15:02:01 +00:00
parent 14905ddc74
commit 2920c227d3
14 changed files with 131 additions and 66 deletions

View file

@ -90,3 +90,18 @@
>Tracing: function
?+xtf:1> local regression_test_dummy_variable
?+xtf:2> print 'Tracing: function'
echo 'PS4="+%x:%I> "
fn() {
print This is fn.
}
:
fn
' >fnfile
$ZTST_testdir/../Src/zsh -fx ./fnfile
0:Trace output with sourcefile and line number.
>This is fn.
?+./fnfile:1> PS4='+%x:%I> '
?+./fnfile:5> :
?+./fnfile:6> fn
?+./fnfile:3> print This is fn.