Bash Functions: Difference between revisions
Jump to navigation
Jump to search
(→Syntax) |
(→Syntax) |
||
Line 12: | Line 12: | ||
The "function" keyword is optional. | 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. | 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= | =Executing a Function in Background= |
Revision as of 23:43, 15 July 2017
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.