Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9675cf8756cd96e3aff2cc24147e3ec187e35329
Ticket: 2907095fffffffffffffffffffffffffffffffff
library/init.tcl using wrong string comparison
User & Date: wjc on 2009-12-01 20:23:05
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. 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
    
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "wjc"
  10. subsystem changed to: "None"
  11. title changed to: "library/init.tcl using wrong string comparison"
  12. type changed to: "Bug"