Hacker News new | ask | show | jobs
by anthk 641 days ago
A tip:

        sh -x $SCRIPT
shows a debugging trace on the script in a verbose way, it's unvaluable on errors.

You can use it as a shebang too:

         #!/bin/sh -x
1 comments

Thanks! I've always edited the script adding a `set -x` at the top. Never occurred to me that I the shell of course had a similar startup flag.