Re: Fix for a rare redirection problem with eval

Grzegorz Adam Hankiewicz <[email protected]> Tue, 26 Aug 2003 09:44:58 +0200
Newsgroups gmane.comp.web.tclwebtest
Message-ID <[email protected]>
On 2003-08-25, Grzegorz Adam Hankiewicz <[email protected]> wrote:
> On 2003-08-22, Tilmann Singer <[email protected]> wrote:
> > [...] You mind trying this new syntax?
> [...]
> > invalid command name "one_req"
> >     while executing
> > "one_req"
> >     ("eval" body line 1)
> >     invoked from within
> > "eval do_request $nocomplain_option $followequiv_option $location"
> >     (procedure "do_request" line 134)
> >     invoked from within
> > [...]

Simple shell tests fail too:

$ tclsh
% set ugh "Don't; like this"
Don't; like this
% eval puts $ugh
Don't
invalid command name "like"
% set cmd [list puts $ugh]
puts {Don't; like this}
% eval $cmd
Don't; like this
% eval puts {$ugh}
Don't; like this

I think that the solution with braces would be ok if there were
no empty parameters. In order to check which are empty or not,
the proposed solution of building a list seems equally easy. I'm
short of other suggestions.

-- 
 Grzegorz Adam Hankiewicz, [email protected] Tel: +34-94-472 35 89.
 eFaber SL, Maria Diaz de Haro, 68, 2         http://www.efaber.net/
 48920 Portugalete, Bizkaia (SPAIN)


-------------------------------------------------------
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