]> sipb.mit.edu Git - wiki.git/commitdiff
add Google shell style guide
authorAlexander W Dehnert <adehnert@mit.edu>
Thu, 7 Nov 2013 07:14:10 +0000 (02:14 -0500)
committersipb-www <sipb-www@pancake-bunny.mit.edu>
Thu, 7 Nov 2013 07:14:10 +0000 (02:14 -0500)
doc/safe-shell.mdwn

index ff2dde840b9bb467c44209a2e641e2cf4a58d19e..7b24040f27a906a60df551fbf105c2c4fb4f289f 100644 (file)
@@ -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