Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 81fc324afedf706cc25a4b051332db73b1774181
Ticket: 2964715fffffffffffffffffffffffffffffffff
Problems with Safe Base exposed glob command
User & Date: kjnash on 2010-03-06 22:49:08
Changes

  1. icomment:
    I've built 8.6 from CVS, and it has similar problems, plus some more of its own.
    
    It has replaced 8.5's
    
        if {[catch {
    ::interp invokehidden $slave glob {*}$cmd
        } msg]} {
    Log $slave $msg
    return -code error "script error"
        }
    
    with
    
        try {
    ::interp invokehidden $slave glob {*}$cmd
        } on error msg {
    Log $slave $msg
    return -code error "script error"
        }
    
    and so the result of the glob is thrown away if there is no error.
    
    Why not stick with the [catch] formulation?  As well as being familiar, it will not be necessary (yet) to maintain separate versions of safe.tcl for 8.5 and 8.6.
    
    
    
  2. login: "kjnash"
  3. mimetype: "text/plain"
  4. username: "kjnash"