How can a bash code do a return completely (as if it returns from main function) when it is being in a third nested function call, in order to get back to shell prompt at once ?
the function invocation is one which will fully shut down terminal if exit command is given.
Some of the advice on that site is good (you almost always want to quote your variables), but I'd be wary about most of it. Namely, the use of set -e, and this loop:
for file in $(find /var/www-tmp -type f -name "*.html"); do
Is there a reason you can't just do something like: