When launching tclsh and typing this:
close [open "|tclsh" w]
it works fine.
But, when in ~/.tclshrc
you have package require Tk
, the same line makes tclsh to HANG!
The same issue is with all GUI packages like Tk, Itk, Img, Iwidgets, however with not GUI packages like Itcl, it worsk fine.
How can I fix this issue? The point is to make tclsh
not to hang, when typing close [open "|tclsh" w]
with package require Tk
in ~/.tclshrc
.
The same issue is with wish
. close [open "|wish" w]
makes wish to HANG (with an empty ~/.wishrc
file)!
I got this issue on both 32 and 64 bit CentOS. I have the following versions of packages: tcl-8.5.8, tk-8.5.8, img-1.3, itcl-3.4.b1, itk-3.3, iwidgets-4.0.1.