Skip to content
Tcl Source Code View Ticket
Login

View Ticket

missing "direct" variable in pkg_mkIndex

Closed / Duplicate791751ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-08-20 07:35:57
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.
dgpplain2003-08-20 20:17:27
Logged In: YES 
user_id=80530

Thanks for the report, but
this is already fixed.

Duplicate Bug 776927.
Log in (anonymous is fine) to add a comment.