Subject: Tcl exec args question
I wish to write my own exec procedure in tcl for a workaround to a
problem on FreeBSD
My problem is that I write a procedure like:
proc my_exec (prog_name args) { exec $progname $args }
and all the args are places in one argument to the program as
though quotes were put around them on the Unix command line so they
all get intrepeted as the first argument to the program.
e.g. dc_exec ls david.txt test.txt will be execed as exec
ls "david.txt test.txt" and there is no file with that name.
I simple don't know how do prevent this happening in tcl - any
help would be appreciated.