Name
interp
- interp
option [arg
...] Manage Tcl interpreters. A master Tcl interpreter can create a new interpreter, called a slave, which coexists with the master. Each interpreter has its own namespace for commands, procedures, and global variables. Using aliases, a command in a slave interpreter can cause a command to be invoked in the master or another slave interpreter. Safe interpreters can be created that may be used for executing untrusted code because all potentially dangerous commands have been disabled by making them hidden.
- interp alias
srcPath srcCmd
Return a list containing the target command and arguments for the alias named
srcCmd
in interpreter specified bysrcPath
.- interp alias
srcPath srcCmd
{} Delete the alias named
srcCmd
from the interpreter specified bysrcPath
.- interp alias
srcPath srcCmd targetPath targetCmd
[arg
...] Create an alias between two slave Tcl interpreters. The source command is named
srcCmd
in interpretersrcPath
and is placed in interpretertarget-Path
as commandtargetCmd
. Additional arguments to be appended totargetCmd
can be specified.- interp aliases
[
path
] Return a list of the command aliases defined in interpreter
path
.- interp create [-safe] [- -]
[
path
] Create a slave interpreter using the specified
path
.
Options
- -safe
Creates a safe interpreter.
- - -
Marks the end of options.
- interp delete
[
path
...] Delete slave interpreters specified using zero or more pathnames.
- interp eval
path arg
... Concatenate arguments and evaluate them as a command using the slave interpreter ...
Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.