Re: Fix for a rare redirection problem with eval

Tilmann Singer <[email protected]> Fri, 22 Aug 2003 14:20:19 +0000
Newsgroups gmane.comp.web.tclwebtest
Message-ID <[email protected]>
Hi,

Wouldn't it work to simply replace

eval "do_request $nocomplain_option $followequiv_option $location"

with

eval {do_request $nocomplain_option $followequiv_option $location}

? I just did a simple test in tclsh which indicated that this should
work, since then the variables get substituted during the eval run,
not before which should work as well (and looks cleaner to me
anyway).

Unfortunately the selftests can't cover these things since they
require interaction with a server, but if the fix above works for you
feel free to commit it.


cheers, Til


-- 
http://tsinger.com


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0