The interp Command
The interp command is used to create and manipulate interpreters. The interpreter being created is called a slave, and the interpreter that creates it is called the master. The master has complete control over the slave. The interp command is summarized in Table 19-1.
interp aliases slave | Lists aliases that are defined in slave. |
interp alias slave cmd1 | Returns the target command and arguments for the alias cmd1 in slave. |
interp alias slave cmd1 master cmd2 arg ... | Defines cmd1 in slave that is an alias to cmd2 in master with additional args. |
interp create ?-safe? slave | Creates an interpreter named slave. |
interp delete slave | Destroys interpreter slave. |
interp eval slave cmd args ... | Evaluates cmd and ... |
Get Practical Programming in Tcl & Tk, Third Edition 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.