catch {exec wish tkcon.tcl script.tcl}
The wish console always catches a 0 regardless whether script.tcl exit
1 or exit 0.
How do you close tkcon and pass back to the wish console an exit
status?
Many thanks
Tony
IIRC tkcon overrides the exit command (so you can exit a slave
interpreter without exiting the other interpreters).
In a tkcon tab:
% interp alias {} exit
::tkcon::DeleteTab .tab1 slave
You might want to go source diving a bit to see if this override
passes on any exit code when the last interpreters is exited. I
suspect this might be causing the always 0 exit code.
Mark