Shell Functions

  • Chris F. A. Johnson
  • Jayant Varma

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.

Keywords

Editing 

Copyright information

© Chris F. A. Johnson and Jayant Varma 2015

Authors and Affiliations

  • Chris F. A. Johnson
    • 1
  • Jayant Varma
    • 1
  1. 1.OntarioCanada

Personalised recommendations