Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0e35a67135a29acc2293611a04028f7d1eb12d0f
Ticket: 217822ffffffffffffffffffffffffffffffffff
auto_mkindex does not work with itclsh
User & Date: nobody on 2000-10-26 00:44:21
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1481 Bug
    Version: 8.0.5
    SubmitDate: '1999-03-11'
    LastModified: '2000-01-31'
    Severity: MED
    Status: Closed
    Submitter: welch
    ChangedBy: ericm
    RelatedBugIDs: 1657 1115 1549 1558 1559
    OS: All
    FixedDate: '2000-10-25'
    FixedInVersion: 8.1
    ClosedDate: '2000-01-31'
    
    
    Name:
    
    Erik Allaert
    
    
    Extensions:
    
    TclX 8.0.3, itcl 3.0.1, BLT 2.4g, Img 1.1.4, Tktable 2.4, msqltcl 1.99
    
    
    ReproducibleScript:
    
        te13 eallaert: 260 > itclsh
    
               % auto_mkindex ../lib/libseqTcl.tcl *.tcl
    
        invalid command name "$parser"
    
        % set errorInfo
    
        invalid command name "$parser"
    
            while executing
    
        "{$parser} eval { _%@namespace import -force ::itcl::* }"
    
            ("eval" body line 1)
    
            invoked from within
    
        "eval $cmd"
    
            (procedure "auto_mkindex_parser::init" line 28)
    
            invoked from within
    
        "auto_mkindex_parser::init"
    
            (procedure "auto_mkindex" line 19)
    
            invoked from within
    
        "auto_mkindex ../lib/libseqTcl.tcl *.tcl"
    
        % 
    
    
    Patch:
    
    *** init.tcl.orig       Thu Feb 11 04:06:23 1999
    
    --- init.tcl    Wed Mar 10 14:49:41 1999
    
    ***************
    
    *** 908,914 ****
    
          proc auto_mkindex_parser::slavehook {cmd} {
    
            variable initCommands
    
    
    !       lappend initCommands [list \$parser eval $cmd]
    
          }
    
    
          # auto_mkindex_parser::command --
    
    --- 908,914 ----
    
          proc auto_mkindex_parser::slavehook {cmd} {
    
            variable initCommands
    
    
    !       lappend initCommands "\$parser eval [list $cmd]"
    
          }
    
    
          # auto_mkindex_parser::command --
    
    ***************
    
    *** 959,965 ****
    
                set exportCmd [list _%@namespace export [namespace tail $name]]
    
                $parser eval [list _%@namespace eval $ns $exportCmd]
    
                set alias [namespace tail $fakeName]
    
    !           $parser invokehidden proc $name {args} [list _%@eval $alias \$args]
    
                $parser alias $alias $fakeName
    
            } else {
    
                $parser alias $name $fakeName
    
    --- 959,965 ----
    
                set exportCmd [list _%@namespace export [namespace tail $name]]
    
                $parser eval [list _%@namespace eval $ns $exportCmd]
    
                set alias [namespace tail $fakeName]
    
    !           $parser invokehidden proc $name {args} "_%@eval $alias \$args"
    
                $parser alias $alias $fakeName
    
            } else {
    
                $parser alias $name $fakeName
    
    
    PatchFiles:
    
        library/init.tcl
    
    
    
    
    This bug has apparently to do with the fact that the "list" command wants to
    "neutralize" $-signs by putting braces around it. The corresponding pieces
    of Tcl's 8.0.4 init.tcl code did (therefore ?) not use "list", were OK, and  are put back in place by this patch.
    
    [BRENT SAYS:]  The patch is only partially right.   The first fix in the patch is good.  I think the second invoke hidden should be:
    
        $parser invokehidden proc $name {args} "_%@eval {$alias} \$args"
    
    ------------
    
    This bug was fixed in Tcl 8.1.  Another bug ticket relating to it was issued and resolved, but this one was not marked as a duplicate and closed until now.
    
    - eric
    
    -- 01/31/2000 ericm
    
    
    
  4. foundin changed to: "final: 8.0.5"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "56. LibTomMath"
  10. title changed to: "auto_mkindex does not work with itclsh"
  11. type changed to: "Bug"