Bash Functions

From NovaOrdis Knowledge Base
Revision as of 23:43, 15 July 2017 by Ovidiu (talk | contribs) (→‎Syntax)
Jump to navigation Jump to search

Internal

Defintion

Syntax

[function] function-name() {
    ...
}

The "function" keyword is optional.

Arguments

The function does not declare its arguments in the signature. They are available in the function's body as $1, $2, etc.

Return Values

Executing a Function in Background