Johannes Kuhn

Show:

What's happening?

  • Comment: Problems with Safe Base exposed glob command

    An alternative to provide a save subset of glob is to search for tm packages in the parent. This approach would solve the huge glob mess, and it allows that the safe base uses it's original security policy, so it would be not longer necessary to allow the access to files in subdirs of the tokens (like tm does when requesting [package require tcl::chan::fifo]) I know recreating the tm for the...

    2012-05-17 09:30:31 PDT in Tcl

  • Comment: Exposed file command broken in safe interps

    Looks like there are more scripts and applications that actually uses [interp invokehidden file] than I thought. The problem why I don't rewrite my script to work with the newer Tcl 8.6 releases is that I expect that the names of the hidden commands will change again, this time with namespace, like tcl::file::atime, which would require to rewrite the script again. I still suggest allowing...

    2012-05-16 02:16:51 PDT in Tcl

  • Comment: Epoch does not increase when adding a trace

    <schelte> Johannes13, I would think the most important issue is that command tracing doesn't work if the trace is defined after the code has been executed before. You don't seem to mention that very clearly.

    2012-02-05 05:08:59 PST in Tcl

  • Epoch does not increase when adding a trace

    Different bytecode depending if there is a trace execution on a (bytecode) inlined command. Testcase: proc putargs {args} {puts $args} proc test1 {t} {if {[string equal $t "test"]} {puts "foo"}} test1 -; #compile trace add execution ::string enter putargs proc test2 {t} [info body test1]; # create a second proc with the same body test2 -; # compile...

    2012-02-05 04:44:01 PST in Tcl

  • Comment: Exposed file command broken in safe interps

    Ok, just saw that ::tcl::file::channels is never hidden, so scripts could easily create the [file] command it if they need it, but because the safe base defines an own [file] command, this is going to be a little bit more complex. Ohh, and by the way you broke my code... and it will take some of my time to fix it..

    2012-01-08 11:54:04 PST in Tcl

  • Comment: Exposed file command broken in safe interps

    The file command is now a namespace ensemble (see [namespace ensemble configure file]). All subcommands of file are now hidden with a name like tcl:file:atime. (Original name with all namespace seperators (::) replaced by a single colon(:)) This change does in fact break old scripts that uses [interp invokehidden $interp file]. The safe base uses the trused interp's file command, this is ok...

    2012-01-08 11:26:43 PST in Tcl

About Me

  • 2009-12-16 (2 years ago)
  • 2739479
  • johannes-kuhn (My Site)
  • Johannes Kuhn

Send me a message