How to avoid opening external programs in tclsh

44 Views Asked by At

Typing 'as' in my development environment causes tclsh to be unresponsive

mytcl % as


^C
child killed: interrupt
while evaluating as
mytcl % 

I don't care what kind of program is opened by the as command, is there a way to stop opening this external program in tclsh?

1

There are 1 best solutions below

4
glenn jackman On BEST ANSWER

is there a way to stop opening this external program in tclsh?

Yes. From https://wiki.tcl-lang.org/page/tclsh

Setting $::auto_noexec to 1 suppresses this behaviour

You can set that in your ~/.tclshrc if you want to turn it off in every interactive tclsh session.