summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2017-12-10 19:55:46 -0800
committerBryan Newbold <bnewbold@archive.org>2018-08-10 16:06:46 -0700
commitf1a6ac58103d7bb1bedc7f22cac408cef3fa726f (patch)
treea4612e4b762ef303bced41ab117eaceaede38712
parenteda999189592954dbb6ef6103a52e390cc3c727a (diff)
downloadknowledge-f1a6ac58103d7bb1bedc7f22cac408cef3fa726f.tar.gz
knowledge-f1a6ac58103d7bb1bedc7f22cac408cef3fa726f.zip
bash shell linting and style guide
-rw-r--r--software/bash.page6
1 files changed, 6 insertions, 0 deletions
diff --git a/software/bash.page b/software/bash.page
index 435176d..5c81d3f 100644
--- a/software/bash.page
+++ b/software/bash.page
@@ -36,3 +36,9 @@ I frequently add a one-line version of the following to shell scripts:
Note that `join`, `grep`, and others sometimes exit non-zero return codes on
purpose (eg, pipe input closed or found no matches, as expected), which makes
life difficult. Sometimes `|| true` is enough to get around this.
+
+## General Style
+
+Google has a style guide: https://google.github.io/styleguide/shell.xml
+
+Shellcheck is a lint tool: https://www.shellcheck.net/