I've got a bash script with a while loop that iterates over a list of directories. On each pass, it calls a perl script to do some work.
But on the first pass, whether the perl script exits successfully or with an error, the outer shell script exits too.
I've played with the bash trap command, and searched for an answer, but no solution yet. Thanks for any advice....