Search code examples
tcltclsh

How to avoid opening external programs in tclsh


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?


Solution

  • 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.