Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Tkcon exit status

6 views
Skip to first unread message

ton...@googlemail.com

unread,
Jul 11, 2007, 5:34:51 AM7/11/07
to
I am exec'ing tkcon from a wish console

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

Mark Janssen

unread,
Jul 19, 2007, 4:11:09 AM7/19/07
to
On Jul 11, 11:34 am, "tony...@googlemail.com" <tony...@googlemail.com>
wrote:

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

0 new messages