#!/bin/bash # call-funct-that-returns.sh # shell script that demos how the calling shell script # can see the exit status *returned* from a # called function by using $? # # uses: funct_that_returns from funct-return.sh # # by: Sharon Tuttle # last modified: 2022-11-30 source funct-return.sh echo "call-funct-that-returns: about to call funct_that_returns" funct_that_returns rain ocean africa echo "call-funct-that-returns: AFTER call: \$? is: $?"