View Single Post
Old 05-06-2004, 04:08 PM  
tuff
Senior Member
 
Join Date: Jan 2003
Posts: 277
Default

"file rename -- $path\[lindex $arg end].incomplete $path\[lindex $arg end]"

im almost sure if you place a \ before a [ in tcl, tcl will interpet the [ as part of the string and NOT as a command

since your using the same command twice there, why not simply

set what [lindex $arg end] ?
__________________
#iotools #ioftpd (both on efnet)
tuff is offline