Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9e3f5a9bba38d95b86d05badf3fe3837e5cec095ae402549ec5c50e7cc5a86d6
Ticket: 43c94f95988f3057fcabbd2a4b81c6e8ff9909a6
Tcl will not start properly if there is an init.tcl file in the current dir
User & Date: stu on 2024-11-12 04:44:21
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    This on my system. Your auto_paths may vary.
    
    $ echo 'puts $::auto_path' | tclsh8.6
    /usr/local/lib/tcl/tcl8.6 /usr/local/lib/tcl
    
    $ echo 'puts $::auto_path' | tclsh9.0
    /usr/local/lib/tcl/tcl9.0 /usr/local/lib/tcl
    
    $ echo '' > init.tcl
    
    $ echo 'puts $::auto_path' | tclsh8.6
    /usr/local/lib/tcl/tcl8.6 /usr/local/lib/tcl
    
    $ echo 'puts $::auto_path' | tclsh9.0
    can't read "::auto_path": no such variable
    
    
    Wish provides a different error message for the same problem:
    
    $ wish9.0
    application-specific initialization failed: invalid command name "tcl_findLibrary"
    
    
    And for fun:
    
    $ echo 'puts "I like fish!"' > init.tcl
    
    $ echo 'puts $::auto_path' | tclsh9.0
    I like fish!
    can't read "::auto_path": no such variable
    
  5. foundin changed to: "9.0"
  6. is_private changed to: "0"
  7. login: "stu"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "702b65e835b7b4b4720d6e9d37fc582f82909394"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "stu"
  14. subsystem changed to: "38. Init - Library - Autoload"
  15. title changed to:
    Tcl will not start properly if there is an init.tcl file in the current dir
    
  16. type changed to: "Bug"