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
- 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]. - login: "johannes-kuhn"
- mimetype: "text/plain"
- title changed to: "glob - the use of [try] does not set msg prober"
- username: "johannes-kuhn"