3 ms·
I have. There are a few simple rules that, once you learn them, eliminate those kinds of problems. The main one is always use double-quotes around variable der
by dwheeler 5y ago
I have.
There are a few simple rules that, once you learn them, eliminate those kinds of problems. The main one is always use double-quotes around variable dereferences. The second is learning a few patterns, like find ... -print0 | xargs -0 ...
But even after you've learned those simple rules, shellcheck is still useful. It will find fewer problems, but that's a good thing, that means you learned something :-).