I have a standalone TCL script that invokes a system call of another script. To invoke this, I build a command string using a variable called 'cmd'.
To make an extremely long story short (not to mention the countless hours of trying to find a 'global/upvar of cmd'), I found that my cmd variable was getting corrupted by IncrTcl. To easily reproduce this:
So it seems that Itcl is setting 'cmd' at the top/global level namespace. Anyone else ever see this?
To make an extremely long story short (not to mention the countless hours of trying to find a 'global/upvar of cmd'), I found that my cmd variable was getting corrupted by IncrTcl. To easily reproduce this:
Code:
[johndoe@server]$ tclsh
% set cmd
can't read "cmd": no such variable
% package require Itcl
3.4
% set cmd
private
%
So it seems that Itcl is setting 'cmd' at the top/global level namespace. Anyone else ever see this?