The best way to test a script - Wed, Jan 29, 2014
- Echo every line that does something significant
- Run with a cleared path:
env -i /path/to/script.sh
- Run with both a cleared path and a trace of what’s happening:
env -i sh -x /path/to/script.sh
env -i /path/to/script.sh
env -i sh -x /path/to/script.sh