Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: be0ed163e5fa83852e662272c9bdd8af65f1366c
Ticket: 3004191fffffffffffffffffffffffffffffffff
glob - the use of [try] does not set msg prober
User & Date: johannes-kuhn on 2010-05-20 19:32:47
Changes

  1. icomment:
        try {
    ::interp invokehidden $slave glob {*}$cmd
        } on error msg {
    Log $slave $msg
    return -code error "script error"
        }
    
    As we can see, the result of glob is not used unless an error occurs.
    But the statement
        Log $slave "GLOB @ $msg" NOTICE
    requires that $msg is set. We use $msg also for the result of [glob] later.
    My solution is to catch ok too, but we can also use the old [catch] or set msg [glob].
    
    
  2. login: "johannes-kuhn"
  3. mimetype: "text/plain"
  4. title changed to: "glob - the use of [try] does not set msg prober"
  5. username: "johannes-kuhn"