Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 50d6c51009906259f4f0577d261d7dcd67abcbf5d61bec3586f8f5ae9d248f70
Ticket: 2964719fffffffffffffffffffffffffffffffff
Improve handling of ::auto_path in Safe Base interpreters
User & Date: kjnash on 2020-07-20 23:56:32
Changes

  1. closer changed to: "nobody"
  2. comment changed to:
    #     THE STATUS QUO:
    #
    #     The Safe Base makes the slave's ::auto_path identical to its access path.
    #     This arrangement pre-dates both modules and the "safe" glob command.
    #     In a safe interpreter glob would raise an error (which was then caught)
    #     when tclPkgUnknown used it to access subdirectories of the ::auto_path; in
    #     a safe interpreter the auto_path was made identical to the access path so
    #     that all packages could be accessed.
    #
    #     Now that "safe" glob is available, it has a kludge to prevent
    #     tclPkgUnknown from looking for packages in the grandchildren of the
    #     "intended" ::auto_path directories.
    #
    #     With the introduction of Tcl modules, the access path now also includes
    #     the module path and its subdirectories (to unlimited depth): these are in
    #     the safe interpreter's ::auto_path but do not belong there.
    #
    #     FEATURE REQUEST:
    #
    #     The ::auto_path should be managed separately from the access_path, and
    #     should not include the module path.  At a future revision of Tcl (8.6?),
    #     the tclPkgUnknown kludge should be removed from AliasGlob, and the safe
    #     interpreter ::auto_path should be defined in the same way as unsafe
    #     interpreters (so that its subdirectories are searched for packages).
    #     Changes to the Safe Base public API will be needed, either in the commands
    #     and their options, or in their effects: for example the Safe Base might
    #     refrain from setting a slave's ::auto_path, and require the master
    #     interpreter to do so explicitly.
    
  3. icomment:
    The essence of these changes has been submitted as TIP-579.  There is no need to consider the change through another channel, so I will close this RFE.
    
  4. login: "kjnash"
  5. mimetype: "text/plain"
  6. severity changed to: "Minor"