Google Shell Style Guide

Google's published rules for writing bash scripts, covering quoting, naming, functions and when to switch to another language.

In more detail

Much of the course's style advice matches it: quote expansions, use [[ ]] and $( ), declare locals, and put main at the bottom. It suggests rewriting a script in a fuller language once it passes about a hundred lines.

Related terms

Taught in

References