aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/alias.txt
blob: 2ab277e9f8ed4f97dfd084114a4765aa71004497 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
\section alias alias - create a function

\subsection alias-synopsis Synopsis
<pre>alias NAME DEFINITION
alias NAME=DEFINITION</pre>

\subsection alias-description Description

Alias is a shellscript wrapper around the function builtin.
It exists for backwards compatibility with Posix
shells. For other uses, it is recommended to define a <a
href='#function'>function</a>.

Alias does not keep track of which functions have been defined using
alias, nor does it allow erasing of aliases.

- NAME is the name of the function to define
- DEFINITION is the body of the function. The string " $argv" will be appended to the body.