interp aliases
Gives the names of the aliases of an interpreter.
interp aliases ?PATH?
Description
Gives the name of each alias in the interpreter of PATH, or of the current interpreter with no PATH. An alias that a script renamed to {} is gone from the list.
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
| PATH | interpreter path | {} | The interpreter. |
Returns
A list of command names.
Examples
% set c [interp create]; interp alias $c a {} list; interp alias $c b {} list; lsort [interp aliases $c]
a b
% interp eval $c {rename a {}}; interp aliases $c
b
% interp aliases
Errors
% interp aliases 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