Summary
In this chapter we explained how to prevent some common syntax and logic errors. The shell debugging commands set -x
and set -v
were also described. Using redirection to send the output from a script to another terminal was also shown as a way to debug in real time.
In the next chapter we will talk about scripting best practices. This includes making careful backups of your work and selecting a good text editor. A way to help you be more productive using the command line by using environment variables and aliases will also be discussed.