Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Tcltest evaluates $env(TCLTEST_OPTIONS)

Closed / Fixed2570363fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2009-02-05 23:33:22
Tcltest evals $::env(TCLTEST_OPTIONS) in function ConfigureFromEnvironment. Externally provided data should be treated more carefully.
sbronplain2009-02-06 06:33:23
File Added - 312239: tcltest.patch
dgp Ticket [2570363fff]: 1 change [History diff]2009-02-06 22:51:05
nijtmansplain2009-02-10 19:09:58
Agreed. However, wouldn't
    if {[catch {Configure {*}$::env(TCLTEST_OPTIONS)} msg]} {
be simpler, more efficient and more readable than
    if {[catch {eval [linsert $::env(TCLTEST_OPTIONS) 0 Configure]} msg]} {
?

Apart from that, there are serveral more suspicious eval's in
tcltest.tcl, that should be handled similar.
dgpplain2009-02-10 21:05:08
The {*} fix should go into tcltest 2.3.1

The more careful [eval] should go into tcltest 2.2.10
dgpplain2009-04-08 23:05:49
allow_comments - 1


Fixes committed.
Log in (anonymous is fine) to add a comment.

Attachments: