5 ms·
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: #!
by anthk 2y 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
- olejorgenb 2y agoThanks! 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.