I prefer to minimize the amount of lines of shellcode I write.
Preferably to zero.<p>I know it's hard. I get it. bash is convenient, and because it is, I have written more bash deployment pipelines, buildtools, utils, watchdogs, crons, etc. than I care to count.<p>But also, bash _is not a programming language_ outside of the technical definition. It is a command interpreter, and the reason why large shellscripts suck, is because they are written using a command-interpreter as a general purpose PL.<p>Have something larger than 40 LOC bash? rewrite it using an actual programming language.