Google Groups unterstützt keine neuen Usenet-Beiträge oder ‑Abos mehr. Bisherige Inhalte sind weiterhin sichtbar.

Safe interp and file command with ActiveTcl 8.6b5

13 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Bruce Johnson

ungelesen,
14.03.2011, 12:36:1714.03.11
an
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

ungelesen,
14.03.2011, 13:09:0414.03.11
an

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

ungelesen,
14.03.2011, 14:29:3314.03.11
an
Filed as bug 3211758

Thanks,

Bruce

0 neue Nachrichten