#!/bin/bash # # Demonstrates function definition & invocation, # nested function call, # and termination of the script from any function. # function quit { echo Nested call hello exit } function hello { echo Hello! } hello quit echo foo