Skip to content
Tcl Source Code History Of Ticket 3004191
Login

History Of Ticket 3004191

Artifacts Associated With Ticket 3004191

  1. Ticket change [a948cbbe51] (rid 99126) by johannes-kuhn on 2010-05-19 17:08:40:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      (bin) 52 % safe::createInterp slave; slave eval {glob *}
      invalid command name "safe::createInterp"
      
      Please trap the ok too :)
      
      Patch file included.
      
    4. foundin initialized to: "obsolete: 8.6b1.1"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "johannes-kuhn"
    10. subsystem initialized to: "33. Safe Base"
    11. title initialized to: "glob doesn't work on the safe base"
    12. type initialized to: "Bug"
  2. Add attachment "safe.tcl.patch" [b79a45387c] (rid 125628) by johannes-kuhn on 2010-05-20 00:08:40.

  3. Ticket change [f3278bc6cb] (rid 129652) by johannes-kuhn on 2010-05-20 00:08:41:

    1. icomment:
      
      
      File Added - 374488: safe.tcl.patch
      
      
      
    2. login: "johannes-kuhn"
    3. mimetype: "text/plain"
    4. username: "johannes-kuhn"
  4. Ticket change [904aab05ef] (rid 120427) by johannes-kuhn on 2010-05-20 00:09:13:

    1. assignee changed to: "dkf"
  5. Ticket change [be0ed163e5] (rid 102014) by johannes-kuhn on 2010-05-20 19:32:47:

    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"
  6. Ticket change [791d473bf6] (rid 90068) by dkf on 2010-08-18 20:13:48:

    1. icomment:
      % safe::interpCreate slave
      slave
      % slave eval {glob *}
      can't read "msg": no such variable
      
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  7. Ticket change [181871e995] (rid 122609) by dkf on 2010-08-18 20:32:35:

    1. closedate changed to: "2010-08-18T13:32:35"
    2. closer changed to: "dkf"
    3. icomment:
      
      
      allow_comments - 1
      
      Turned out that we didn't have any tests that checked whether a safe [glob] could ever work! D'oh!
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"