NAME

alias - Define a new Soar alias

SYNOPSIS

alias name [prefix-string]

DESCRIPTION

This command defines new aliases by creating Tcl procedures with the given name. The new procedure takes an arbitrary number of arguments and post-pends those arguments to the given prefix-string before executing the command. When invoked, the command is executed at the global level as if typed in from the interactive command line interpreter. 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 by the same name. Existing aliases can be redefined, however. Existing aliases can be removed by using the command unalias.

EXAMPLES

The command wmem is an alias which is defined as follows:

alias wmem print -depth 0 -internal

If the user executes a command such as:

wmem {(* ^superstate nil)}

it is as if the user had typed this command:

print -depth 0 -internal {(* ^superstate nil)}

FILES

tclsoar.tcl
The aliases for Soar provided upon startup are defined in this file. See tclsoar.tcl for more examples of aliases.

SEE ALSO

unalias