interp issafe
Tests if an interpreter is safe.
interp issafe ?PATH?
Description
Gives 1 when the interpreter of PATH is safe, else 0. With no PATH, the path is the current interpreter. interp marktrusted makes a safe interpreter trusted.
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
| PATH | interpreter path | {} | The interpreter. |
Returns
1 or 0.
Examples
% interp create -safe s; interp issafe s
1
% interp create t; interp issafe t
0
% interp issafe
0
Errors
% interp issafe 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