<i>how to log Tcl commands that are executed via the source command using the Tcl C API</i>.
by
.
D 2025-07-24T08:56:18.467
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-plain
J comment During\sthe\sexecution\sof\sa\suser\scommand\sI\sneed\sto\sreport\sthe\sscript\sfile\sname\sand\sline\snumber\sif\sthe\scommand\sis\sinside\sa\sscript\sfile.\sThe\sTcl_Interp\serrorLine\smember\svariable\sis\supdated\sonly\sif\sthe\scommand\sreturns\sTCL_ERROR\scode,\sotherwise\sI\scan't\ssee\sany\sway\sto\sfind\sout\sthe\scurrent\scommand,\sline\snumber\sand\sfile\sname.
J foundin 8.6.8
J is_private 0
J login arvind29
J priority 5\sMedium
J private_contact 24b6332679e5f96732dab3b9d46f1f0d512b2551
J resolution None
J severity Critical
J status Open
J submitter arvind29
J subsystem 45.\sParsing\sand\sEval
J title how\sto\slog\sTcl\scommands\sthat\sare\sexecuted\svia\sthe\ssource\scommand\susing\sthe\sTcl\sC\sAPI
J type Support
K 008773b7a3cdd530a184b2e8902d0679e246de74
U arvind29
Z af86a263fd0f2a470f6258c36fc064a4