Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Safe interp and file command with ActiveTcl 8.6b5

13 views
Skip to first unread message

Bruce Johnson

unread,
Mar 14, 2011, 12:36:17 PM3/14/11
to
I'm having the following problem:


% set i [interp create -safe]
interp0
% interp expose $i file
::tcl::mathfunc::maxunknown hidden command "file"
%


Running the latest ActiveTcl 8.6 on Ubuntu Linux.

If I do

%interp eval $i {info commands}
tell subst eof list pid time eval lassign lrange fblocked lsearch gets case lappend proc throw break variable llength return linsert error catch clock info split array if coroutine concat join lreplace fcopy global switch update close for file append lreverse format read package set binary namespace scan apply trace seek zlib while chan flush after vwait dict uplevel continue try foreach lset rename fileevent regexp lrepeat upvar tailcall expr unset regsub interp puts incr lindex lsort string yield

I'm surprised to see file in the list of commands available in the safe interpreter.

Any suggestions would be appreciated.

Bruce

Jeff Hobbs

unread,
Mar 14, 2011, 1:09:04 PM3/14/11
to

Certain parts of the 'file' command have always been available in the
safe base, but the recent move of 'file' to being a namespace ensemble
has evidently borked its operation with safe interps. Please file
this as a bug.

Jeff

Bruce Johnson

unread,
Mar 14, 2011, 2:29:33 PM3/14/11
to
Filed as bug 3211758

Thanks,

Bruce

0 new messages