Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0a01ef50bc836594c57211e54db55cd4e41fd97d
Ticket: 2906841fffffffffffffffffffffffffffffffff
calling [glob ../*] in an safe interp returns weird things
User & Date: andreas_kupries on 2009-12-02 00:15:24
Changes

  1. closedate changed to: "2009-12-01T17:15:24"
  2. closer changed to: "andreas_kupries"
  3. icomment:
    Hm. What is your revision of safe.tcl ?
    (Installed under [info library], see the RCS comment line at the top).
    
    Mine is CVS head as of the time of this comment, revision 1.33, and I do not see the problem/error.
    
    The relevant code in my file safe.tcl is
    
        try {
    ::interp invokehidden $slave glob {*}$cmd
    *   } on ok msg {
    *# Nothing to be done, just capture the 'msg' for later.
        } on error msg {
    Log $slave $msg
    return -code error "script error"
        }
    
        Log $slave "GLOB @ $msg" NOTICE
    
    and the lines I marked with * are presumably missing in your revision ... Checking the ChangeLog I also find
    
    2009-10-05  Andreas Kupries  <[email protected]>
    
    * library/safe.tcl (AliasGlob): Fixed conversion of catch to
      try/finally, it had an 'on ok msg' branch missing, causing a
      silent error immediately, and bogus glob results, breaking
      search for Tcl modules.
    
    which looks to me is the problem you are running into. MY guess is that your Tcl is older than that entry.
    
    
  4. login: "andreas_kupries"
  5. mimetype: "text/plain"
  6. resolution changed to: "Out of Date"
  7. status changed to: "Pending"
  8. username: "andreas_kupries"