Summary
In this chapter, we covered some cool tips and tricks that can help you troubleshoot your code. We began by looking at some common shell scripting errors, and showed how to find them in a broken script. We then looked at some common debugging tools and techniques. For the -u
and -e
shell options, I showed you both the pros and the cons of using them. Finally, I showed you how to install and use bashdb
.
In the next chapter, we’ll take a brief look at scripting with zsh
. I’ll see you there.