Command: alias

Syntax

alias <assign>{,<assign>...}

Description

Define an alias identifier and its value.

Parameters

Switches

None

Notes

An alias identifier will be replaced by its value whenever it is encountered on a command line. Alias substitution can be avoided by starting a command with a \ character.

The value of an alias identifier can only be another identifier name or an expression which yields an identifier value. If substitution is required whereby a command is replaced by multiple statements, a stanza should be used.

Examples

alias rm = 'delete'
alias wpos = 'ww.outrect[1:2]'

See Also

Commands:

stanza

Functions:

aliasval(string), envval (string)

Identifiers:

scope (atable)