3 ms·
I second this, it's a great tool. However, don't let it give you a false sense of security. Shellcheck probably won't say anything about the "biting" parts fr
by helb 9y ago
I second this, it's a great tool.
However, don't let it give you a false sense of security.
Shellcheck probably won't say anything about the "biting" parts from the article –
because they are valid, just behaving a bit different than the user expects…
That goes for any linter or static analyser i guess.
- bjackman 9y agoDunno about this particular case but I'd say linters are exactly for finding things that are valid but behave differently than the user expects. E.g. "if (x = 1)" is valid C but i'd be pretty unimpressed if a linter didn't flag it up!
- jwilk 9y agoYup, shellcheck 0.4.4 says this this code is fine.