#!/bin/bash # shell script that calls a little "external" function that # uses return to quit # (to demonstrate that return in a function causes the shell # script CALLING that function NOT to be exited, and that it CAN # grab the exit status of that function's call using $?) # # by: Sharon Tuttle # last modified: 11-19-12 source funct-return.sh echo "call-funct-that-returns.sh: about to call funct_that_returns" funct_that_returns a boo cadre echo "call-funct-that-returns.sh: after call - and exit status is: $?"