Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0d7ee964083243b258ad1af4d49ce9d74cd34778
Ticket: 3445787fffffffffffffffffffffffffffffffff
Exposed file command broken in safe interps
User & Date: apnadkarni on 2011-11-30 04:06:33
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Tcl as of fossil head on 11/29/2011. Follow on to bug 3211758 which was fixed post 8.6b2
    
    The fix in that bug made file a hidden command as was the case in older Tcl releases. However, the fix still does not allow all subcommands of file to be called even after exposing the file command.
    
    % interp create -safe
    interp0
    % interp expose interp0 file
    % interp0 eval {file dirname c:/tcl}
    invalid command name "::tcl::file::dirname"
    
    Aside from whether this is a good idea or not, it is a backward compatibility issue as was the case with 3211758 
    
    
    
  4. foundin changed to: "obsolete: 8.6b2"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "apnadkarni"
  10. subsystem changed to: "16. Commands A-H"
  11. title changed to: "Exposed file command broken in safe interps"
  12. type changed to: "Bug"