In every programming language, there is a linting tool that can help pick up on some common style issues. ShellCheck isn't one of those - it's so much more! I've been using it for many years now, and since it came into my life it's honestly changed the way I use shell scripts. There have been so many pitfalls that I've avoided falling into since learning about them (and adding ShellCheck to my Vim linting setup. This is a great read from Vidar, the ShellCheck author, about a case where it could've caught issues that caused the deletion of a production database!
This post was filed under bookmarks.