Thank you for sharing this; I infrequently have to write standalone shell scripts but every time I do I spend a while looking around for best practices and often just end up with some contradicting opinions.
Just for the record, the Google guide focuses on Google infrastructure and systems, not portability. Using /bin/bash for instance is not a good idea if you want to port your work to BSD systems.
m0nty|7 years ago
And the Google 'Shell Style Guide': https://google.github.io/styleguide/shell.xml
Just in case you hadn't seen them already.
moviuro|7 years ago
moviuro|7 years ago
Good luck!