Suppose I've got a bash script foo.bash, which uses exec to run another bash script:
exec bar.bash
Now am debugging both foo.bash and bar.bash. I am running foo.bash with bash -x but it does not run bar.bash in debug mode. What should I do to run bar.bash in debug mode too ?