Skip to content
Tcl Source Code History Of Ticket 218902
Login

History Of Ticket 218902

Artifacts Associated With Ticket 218902

  1. Ticket change [b643c027a8] (rid 125388) by nobody on 2000-10-26 01:07:25:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2611 Bug
      Version: 8.1
      SubmitDate: '1999-08-31'
      LastModified: '2000-01-28'
      Severity: MED
      Status: Released
      Submitter: techsupp
      ChangedBy: ericm
      RelatedBugIDs: 2480
      OS: All
      FixedDate: '2000-01-28'
      FixedInVersion: 8.3
      ClosedDate: '2000-10-25'
      
      
      Name:
      Hermann Boeken
      
      ReproducibleScript:
      script dummy.tcl:
          
          --------------------------------------------------
          set dummy_string "{dummy} {return \$dummy}"
          
          proc dummy_proc {} {
          
          #empty
          
          }
          --------------------------------------------------
          
          
          Start a tclsh (8.1) and perform the command <auto_mkindex . *.tcl>,
          where the above script dummy.tcl is in the current directory.
      
      ObservedBehavior:
      The above command produces the following error message:
          
          can't read "dummy": no such variable
          
          Putting the command in a script <auto.tcl> and executing it with the
          tclsh gives some more
          information on this unexpected error message:
          can't read "dummy": no such variable
              while executing
          "set dummy_string "{dummy} {return \\$dummy}""               <---- 
              invoked from within
          "$parser eval $contents"
              (procedure "auto_mkindex_parser::mkindex" line 25)
              invoked from within
          "auto_mkindex_parser::mkindex $file"
              (procedure "auto_mkindex" line 25)
              invoked from within
          "auto_mkindex . *.tcl
          "
              (file "auto.tcl" line 1)
      
      DesiredBehavior:
      As with Tcl 8.0.5 I expect a tclIndex to be generated which contains the
          following contents:
          
          -------------------------------------------
          # Tcl autoload index file, version 2.0
          # This file is generated by the "auto_mkindex" command
          # and sourced to set up indexing information for one or
          # more commands.  Typically each line is a command that
          # sets an element in the auto_index array, where the
          # element name is the name of a command and the value is
          # a script that loads the command.
          
          set auto_index(dummy_proc) [list source [file join $dir dummy.tcl]]
          -------------------------------------------
      
      
      
      Verified in 8.2.1 
      -- 10/29/1999 hobbs
      
      This was caused by an over-aggressive attempt to protect from undefined variables in the source being indexed.  It was adding a backslash escape for every dollar sign it saw, even if the dollar was already escaped (as was the case here).  Of course, re-escaping an escaped dollar sign basically means that the dollar sign is not escaped at all, which lead to the error you saw.
      This is fixed in 8.3.
      
      - eric
      
      -- 01/28/2000 ericm
      
      
      
    4. foundin initialized to: "obsolete: 8.1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "56. LibTomMath"
    10. title initialized to: "auto_mkindex reports error which is not existing"
    11. type initialized to: "Bug"
  2. Ticket change [3285e82085] (rid 93627) by welch on 2000-10-26 08:31:15:

    1. closedate changed to: "2000-10-26T01:31:15"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [b4b8296545] (rid 125092) by dgp on 2001-04-06 02:04:45:

    1. closedate changed to: "2001-04-05T19:04:45"
    2. closer changed to: "dgp"
    3. subsystem changed to: "38. Init - Library - Autoload"