This command defines new aliases by creating Tcl procedures with the given name. The new procedure can then take an arbitrary number of arguments which are post-pended to the given definition and then that entire string is executed as a command. When invoked, the command is executed at the global level as if typed in from the interactive command line interpreter. The definition must be a single command, ';' for multiple commands is not allowed. If more complex aliases are desired, then the Tcl proc command can be used to define a new procedure. The alias procedure checks to see if the name already exists, and does not destroy existing procedures or aliases by the same name. Existing aliases can be removed by using the command unalias, or by specifying alias name -off. With no arguments, alias returns the list of defined aliases. With only the name given, alias returns the current definition.
The command wmes is an alias which is defined as follows:
alias wmes print -depth 0 -internal
If the user executes a command such as:
wmes {(* ^superstate nil)}
it is as if the user had typed this command:
print -depth 0 -internal {(* ^superstate nil)}
\f Alias is also a Tcl command that is used when creating slave interps. In Tcl, it is used to allow slave interps to call procs that are defined in the master interp. See the Tcl help file in your system.