Closed riacataquian closed 3 years ago
@mvdan would you mind taking a look once more? I added some more helpers to trace.go
like rawExpr
and rawString
to avoid direct calls to the trace
fields. I'll squash the commits once you agree with the changes :)
Thanks for another round of helpful reviews! I am keen seeing how the code can be improved. :)
Ack. I totally assumed the opposite, that in this case, its better to silently error than halt the running process. But I agree, it's easier to reason about. :)
I squashed the commits, this should be ready for merging.
or its shorthand,
set -x
: https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.htmlthis PR is an incomplete implementation- expressions like
if
,expr
andwhile
among others, will silently be ignored. all trace-related code are contained in theinterp/trace.go
fileNOTE: side-by-side comparison with bash during development, might not behave properly when mksh and sh is used
fixes #396