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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2015 Chris F. A. Johnson and Jayant Varma
About this chapter
Cite this chapter
Johnson, C.F.A., Varma, J. (2015). Shell Functions. In: Pro Bash Programming. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0121-3_6
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0121-3_6
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0122-0
Online ISBN: 978-1-4842-0121-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)