Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0aa13776e6d6b7e283be1cc35dff0b03eea1c4b8
Ticket: 791751ffffffffffffffffffffffffffffffffff
missing "direct" variable in pkg_mkIndex
User & Date: marcomaggi on 2003-08-20 07:35:57
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    With TCL 8.4.4 there's an error in [pkg_mkIndex].
    Create the file:
    
      # proof.tcl --
      package provide boo
      proc baa {} { return }
      # end
    
    and the file:
    
      # hurtme.tcl --
      pkg_mkIndex -direct -verbose . ./proof.tcl
      # end
    
    then:
    
      $ tclsh hurtme.tcl
    
    shows the error:
    
      can't read "::tcl::direct": no such variable
    
      The problem is on line 371 of "package.tcl":
    
      if { $doVerbose } {
        if { !$::tcl::direct } {
          tclLog "commands provided were $cmds"
        }
        ...
      }
    
    "tcl::direct" exists in the $c interpreter, not in
    the main interpreter. Maybe it was supposed to be
    "$direct", if I modify it that way it seems to
    work.
    
      I see that in TCL 8.4.3 the inner [if] was not
    present.
    
    
    
  4. foundin changed to: "obsolete: 8.4.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "marcomaggi"
  9. subsystem changed to: "39. Package Manager"
  10. title changed to: "missing "direct" variable in pkg_mkIndex"
  11. type changed to: "Bug"