News for hackers. Stuff that matters.
Re:Shellcheck finds bugs in your shell scripts by Dries007 on Thursday November 23, 2023 @05:05PM (#38398101)
I would say: stick to straight command sequences with variables, avoid if/for/while/functions etc. Subshells and pipes only for trivial things.

Setting something like a 30 char limit will inevitably lead to code-golfing to fit a mess into the 30 char limit.

But that becomes harder to automatically check, that's why you should still have good peer reviews based on written standards somewhere.

There are no comments on this comment yet.