beetlebug▾
/

interp marktrusted

Makes a safe interpreter trusted.

interp marktrusted PATH

Description

Marks the interpreter of PATH as not safe, so interp issafe gives 0. It adds no command and no capability: the interpreter has the same commands as before.

Arguments

ArgumentTypeDefaultDescription
PATHinterpreter pathrequiredThe interpreter.

Returns

An empty string.

Examples

% interp create -safe s; interp marktrusted s; interp issafe s
0

# The interpreter has no new command.
% interp eval s {info commands interp}

Errors

% interp marktrusted nope
could not find interpreter "nope"
-errorcode TCL LOOKUP INTERP nope

Facts

Capability
interp. A new interpreter does not have it until the host turns it on.
Tcl release
Tcl 9.1 and 8.6.
Since
ztcl 1.0.0-beta.1

See also