Re: [tclwebtest] Fix for a rare redirection problem with eval
Status: Abandoned
Brought to you by:
tils
From: Grzegorz A. H. <gr...@ef...> - 2003-08-22 16:16:30
|
On 2003-08-22, Tilmann Singer <ti...@ti...> wrote: > Hi, > > Wouldn't it work to simply replace [quotes with braces]? [...] Doesn't seem to. I replaced the quotes with braces (patch attached) and got: [...] > > --- do_request for http://192.168.1.50:8014/register/logout > > http status: >>302<< > > following a redirect to: http://192.168.1.50:8014/ > > > > Too many positional parameters specified > > while executing > > "do_request__arg_parser" > > (procedure "do_request" line 1) > > invoked from within > > "do_request $nocomplain_option $followequiv_option $location" > > ("eval" body line 1) > > invoked from within > > "eval {do_request $nocomplain_option $followequiv_option $location}" > > (procedure "do_request" line 134) > > invoked from within > > "do_request $LOGOUT_URL" > > ("uplevel" body line 1) > > invoked from within > > "uplevel $uplevel $to_eval " > > in script body line 0 [...] Maybe there's something more to do? I've read again the chapter about eval in my tcl manual and it says the difference between using a list and curly braces is that the latter doesn't make variable substitution immediate, which could be dangerous if the eval is going to be used in another scope. But I don't understand what this has to do with the "Too many positional parameters" thing. Evil tcl substitution rules... -- Grzegorz Adam Hankiewicz, gr...@ef.... Tel: +34-94-472 35 89. eFaber SL, Maria Diaz de Haro, 68, 2 http://www.efaber.net/ 48920 Portugalete, Bizkaia (SPAIN) |