Hi,
I have done something completely stupid. I am doing some cgi (using my copied
version of CgiExec) and I see that if I have arguments starting with the special
exec characters
(e.g., <, >, |) the open call treats those like pipe redirects, etc. e.g.:
set arglist [list -subject "<some subject" -body "|"]
return [open "|[list $Cgi(tclsh) $script] $arglist" r+]
Is there any way around this?
(short of putting a space before any special characters in the arg list like:
foreach a $arglist {
regsub "^(\[<>2|])" $a { \1} a
lappend l $a
}
)
Thanks,
Jeff
|