Demonstrating behavior of exit
in shell scripts.
The desired behavior is that the script b.sh
is run in the middle of a.sh
or c.sh
. a.sh
and c.sh
only differ in how they call b.sh
.
Running a.sh
has the following output:
$ ./a.sh
starting a.sh
starting b.sh