Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bug in Incr TCL???

Status
Not open for further replies.

tktuffkid

Programmer
Dec 12, 2006
11
0
0
US
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:

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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top