On Tue, March 25, 2008 3:09 pm, Andrew Lentvorski wrote:
> Lan Barnes wrote:
>> A tcl script aborts with traceback on _any_ error. That's by design.
>>
>> You can catch the error and do any damned thing you want with it,
>> including ignoring it altogether.
>>
>> Because that's by design, I will accept "that's broken in my humble
>> opinion." Or <snark attack warning> you can join the Tcl core group
>> (it's
>> open) and lobby for a change.
>
> No, it's broken for a different reason.
>
> That external program was almost certainly *not* meant to be aborted
> spontaneously when it emits something on stderr.  It may emit something
> on stderr, and then start cleanup.  It may unwind things it did, delete
> temp files, etc.
>
> If Tcl aborts that, that's pretty nasty.
>
> Are you *sure* Tcl works that way?  Is there no way to change that?  I
> find it hard to believe given that Expect is a Tcl thing.  Such behavior
> has to have bitten people pretty badly at various points.
>
> -a
>

I said the tcl script aborts with traceback. I said nothing about the
called program. Presumably (if it was written right) it won't even send
error codes until it's quite done with its own business.

-- 
Lan Barnes

SCM Analyst              Linux Guy
Tcl/Tk Enthusiast        Biodiesel Brewer


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to