Overview
| Artifact ID: | 9675cf8756cd96e3aff2cc24147e3ec187e35329 |
|---|---|
| Ticket: | 2907095fffffffffffffffffffffffffffffffff
library/init.tcl using wrong string comparison |
| User & Date: | wjc on 2009-12-01 20:23:05 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
Minor nit: library/init.tcl is checking for package with; if {[info commands package] == ""} instead of if {[info commands package] eq ""} This works, but we should probably follow the advice in expr.n in the library code for clarity. (only reason I noticed is because I am trying to execute this with a version of partcl that is (wrongly) treating == as always numeric.) inlined diff (against old version) below. --- diff --git a/library/init.tcl b/library/init.tcl index 6b92c58..1ba39a6 100644 --- a/library/init.tcl +++ b/library/init.tcl @@ -14,7 +14,7 @@ # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -if {[info commands package] == ""} { +if {[info commands package] eq ""} { error "version mismatch: library\nscripts expect Tcl version 7.5b1 or later } package require -exact Tcl 8.5.6 - foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "wjc"
- subsystem changed to: "None"
- title changed to: "library/init.tcl using wrong string comparison"
- type changed to: "Bug"