From: Alexander W Dehnert Date: Thu, 7 Nov 2013 07:14:10 +0000 (-0500) Subject: add Google shell style guide X-Git-Url: https://sipb.mit.edu/gitweb.cgi/wiki.git/commitdiff_plain/2cdc8a7134d82e31b644c4c46f662f56de605da1 add Google shell style guide --- diff --git a/doc/safe-shell.mdwn b/doc/safe-shell.mdwn index ff2dde8..7b24040 100644 --- a/doc/safe-shell.mdwn +++ b/doc/safe-shell.mdwn @@ -112,6 +112,10 @@ Another approach is to prefix each filename with `./`, if the filenames are expe TODO: mumble `mktemp`? +## Other resources + +Google has a [Shell Style Guide](http://google-styleguide.googlecode.com/svn/trunk/shell.xml). As the name suggests, it primarily focuses on good style, but some items are safety/security-relevant. + ## Conclusion When possible, instead of writing a "safe" shell script, *use a higher-level