.. some times you may need to debug "some scripting" .. and it appears these lines here are "sometimes" very useful:
Use the script starting with these initial statements - will create a file (here in the same /tmp/script.<process-id>.out | you may change to your needs);
will then redirect STDERR to STDOUT with detailled script interpretation - and will then report the lines "as it is" and how it is when interpreted:
exec > /tmp/script.$$.out
PS4='[$0: $LINENO]+ '
Using this for Notifier scripts is very useful in case of customization debugging. Cheers, Joerg