The best Bash advice.
(Bash (or sh, zsh, etc.) is objective garbage as a programming language, but it’s garbage that’s ubiquitous, and that’s valuable. Just don’t let a Bash program grow beyond trivial size or you’ll pay for that low bar to entry later — in blood and tears.)
Quote Tweet
Google has a styleguide for bash. google.github.io/styleguide/she
- If you find you need to use arrays for anything more than assignment of ${PIPESTATUS}, you should use Python.
- If you are writing a script that is more than 100 lines long, you should probably be writing it in Python.
7
26
99


