DEV Community

Discussion on: Here's Why You Should Quote Your Variables in Bash

Collapse
 
nickjj profile image
Nick Janetakis • Edited

Cool thanks. I actually didn't know about -u.

What I typically do is use the shellcheck tool to lint my scripts, and it'll warn you that all hell may break loose if you forget your quotes.

There is also a VSCode extension for it at: github.com/timonwong/vscode-shellc...