Guest_imported
New member
- Jan 1, 1970
- 0
I am having trouble using lists in Tcl when I need to input multiple arguements with an executable. For example:
If I would like to run wordpad to edit a number of different files I would type:
exec wordpad.exe jack.txt bob.txt tim.txt
I tried to perform the same thing but now I placed the names of these files in a list "my_list". If I type:
exec wordpad.exe $my_list
Wordpad generates an error saying the it cannot read the file "jack.exe bob.txt tim.txt".
For some reason Tcl treates all the arguements in a list as one long string. How can I make a list return all of it's contents at one time but not as one long string?