GNU Dictionary Server
4.3.15 Command Aliases
Aliases allow a string to be substituted for a word when it is used
as the first word of a command. The daemon maintains a list of
aliases that are created using the
alias configuration file
- Configuration: alias word command
Creates a new alias.
Aliases are useful to facilitate manual interaction with the server,
as they allow the administrator to create abbreviations for some
frequently typed commands. For example, the following alias creates
d which is equivalent to
alias d DEFINE "*";
Aliases may be recursive, i.e. the first word of command may refer to another alias. For example:
alias d DEFINE; alias da d "*";
This configuration will produce the following expansion:
da word ⇒ DEFINE * word
To prevent endless loops, recursive expansion is stopped if the first word of the replacement text is identical to an alias expanded earlier.
This document was generated on September 4, 2020 using makeinfo.Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.