2 ms·
I do agree about ShellCheck being wrong sometimes - that's why I mentioned the method of disabling it for specific lines with a comment. When I first started us
by ndsipa_pomu 2y ago
I do agree about ShellCheck being wrong sometimes - that's why I mentioned the method of disabling it for specific lines with a comment. When I first started using ShellCheck, it was highlighting lots of footguns that I wasn't aware of, but nowadays, it's very rare for it to spit a warning out at me - usually just for something like it not following a script or stating that a variable wasn't defined when it was.
I think the huge number of footguns is what makes BASH scripting fun.
- Aeolun 2y ago> I think the huge number of footguns is what makes BASH scripting fun. We have a completely different definition of fun. I really only use bash when I need to chain a few commands. As soon as there is more complex logic I move to some programming language.