by jxy · 10y ago · 0 comments
> Executables must start with #!/bin/bash
Either they never use *BSD, or they put their bash there. Unbelievable choice.
> If you find you need to use arrays for anything more than assignment of ${PIPESTATUS}, you should use
I use array all the time and never used PIPESTATUS. So what?
Bash arrays can be convenient, but at that level of complexity Python or Ruby are much easier to read and understand (and necessarily maintain).
We run everything on prodimage, so operating system compatibility isn't really an issue.
Realistically, any time somebody sends me a code review with a shell script in it, my first comment is going to be "Why is this a shell script? Rewrite it in a supported language."
pretty much