How to Debug a Unix Shell Script

By | February 23rd, 2013|Operating Systems, Unix Scripting|

Debugging Shell programs The -x Option for Debugging Programs Something seems to be amiss. The counting portion of our program doesn't seem to be working properly. This seems like a good point to introduce the shell's -x option. You can trace the execution of any program by typing sh -x followed by the name of [...]