checkalias(1) CLIX checkalias(1)
NAME
checkalias - Checks to see if an Elm alias is defined
SYNOPSIS
checkalias alias[,] ...
DESCRIPTION
The checkalias command tries to find the specified aliases (used only with
the Elm mail system) by checking the user's alias file and then the system
alias file. If the alias is found, its value is displayed. Otherwise, an
error message appears.
EXAMPLES
To determine if the alias john exists and how it is defined, enter the
following at the command prompt:
checkalias john
If the alias is in the user alias file or the system file, a message
showing the full expansion of the alias is displayed. For example, if the
alias for john is found, a message similar to the following is displayed:
Expands to: john@abc.letters.com (John Smith)
FILES
$HOME/.elm/aliases.text Individual user's alias file.
/usr/lib/elm/aliases.text The system alias file.
NOTES
The command is a shell script which contains the following line:
elm -c $*
CAUTIONS
Note that the precedence of aliases is the user file and then the system
file. Users can replace a system alias by redefining a system alias in
their user file.
DIAGNOSTICS
If the specified alias does not exist, an error message similar to the
2/94 - Intergraph Corporation 1
checkalias(1) CLIX checkalias(1)
following is displayed. (In this example, john is the alias.)
$ checkalias john
There is no alias for john.
EXIT VALUES
The command exits with a value of 0 if successful. If unsuccessful,
checkalias exits with a value of 1.
RELATED INFORMATION
Commands: newalias(1), elm(1)
``The Elm Alias System User's Guide'' in The Elm User's and Reference
Guides
2 Intergraph Corporation - 2/94