Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f36a7f3499ce7c9c40a1ec907bfc520b19bb72f9
Ticket: 219295ffffffffffffffffffffffffffffffffff
Search one level more subdirectory in lib
User & Date: nobody on 2000-10-26 05:10:16
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2529 RFE
    Version: 8.1
    SubmitDate: '1999-08-12'
    LastModified: '1999-10-21'
    Severity: MED
    Status: UnAssn
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Other
    Machine: NA
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Name:
    Chang LI
    
    ReproducibleScript:
    Tcl can not automatically search the extensions of one level more
        subdirectory under the lib directory. Example:
        
        lib\name\version
    
    PatchFiles:
    patch in the init.tcl file:
        
        The init.tcl is located in the lib\tcl8.1, add the proc in the header, 
                             
                            #
                            # this is a recursive program to make automatically
        search 
                            # subdirectory possible.
                            #
                            proc AppendFolder {start} {
                            set cur [pwd]
                            if {[catch {cd $start} err]} {
                              puts stderr $err
                              return
                            }
                            foreach f [glob -nocomplain *] {
                              if [file isdirectory $f] {
                              set d [file join $start $f]
                              lappend ::auto_path $d
                              AppendFolder $d
                              }
                            }
                            cd $cur 
                            }
                             
                            ...
                             
                            # add following command here
                             
                            AppendFolder [file dirname [file join [pwd] [info
        library]]]
                             
                            # Setup the unknown package handler
                            package unknown tclPkgUnknown
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.1"
  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: "Search one level more subdirectory in lib"
  11. type changed to: "RFE"