ALIAS PSAM/DAPDB Commands ALIAS
NAME
alias, unalias - create alternative names for commands
SYNOPSIS
alias [ <alternative> <command> ]
unalias [ <alternative> ]
DESCRIPTION
The alias command creates alternative names for commands.
The unalias command removes such alternative names. Aliased
commands can be invoked either by typing the command or the
alternative name. If no parameters are supplied alias and
unalias display the currently aliased commands and their
alternative names.
The command interpreter gives precedence to alternative
names over built-in psam and dapdb commands. However no
abbreviation of alternative names is allowed.
The alias command supports a simple form of parameter sub-
stitution. Every occurrence of the character $ in <command>
is substituted for any parameters following an invocation of
<alternative>. If the character $ does not appear in <com-
mand> any parameters of <alternative> are appended to it.
The environment variable Alias_file may be set to the name
of a file containing alias commands. If such a file exists
the alternative names defined in the file take effect at the
start of each debugging session.
EXAMPLES
alias v print Create the alternative name v for the print
command. The command v var1 will now print
the value of variable var1.
alias whereami "file ; procedure ; list"
Create the alternative name whereami for the
sequence of commands file, procedure and
list.
alias plane array $ v i8
Create the alternative name plane for the
array command with the parameters v and i8.
The command plane 100 will now display the
contents of array store starting at plane
100 as a vertical mode matrix of 8-bit
integers.
unalias plane Remove the alternative name plane.
SEE ALSO
interpreter, set
AMT Release 4.1S Last change: 5th June 1989 1