Research indexBook chapter
Shell Functions
Johnson
Apress eBooks5 Dec 2009
NobleIDark:/48914/w1/20260522/0BC3F928DOI10.1007/978-1-4302-1998-9_6
Book chapter
Shell Functions
Johnson · Apress eBooks · 2009 · Subscription
NobleIDark:/48914/w1/20260522/0BC3F928DOI10.1007/978-1-4302-1998-9_6
PaywalledRead at the publisher
The full text is at the publisher
You can read the abstract here, or open it at the publisher.
Abstract
A shell function is a compound command that has been given a name. It stores a series of commands for later execution. The name becomes a command in its own right and can be used in the same way as any other command. Its arguments are available in the positional parameters, just as in any other script. Like other commands, it sets a return code.