Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: