The definitive linting tool for shell scripts is shellcheck. It will catch many common issues; let’s look at an example script:

Depending on how familiar you are with shell scripting, that script may look fine or horrendous. Let’s check:


This page is a preview of The newline Guide to Bash Scripting

No discussions yet