diff options
author | Bryan Newbold <bnewbold@archive.org> | 2017-12-10 19:55:46 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2018-08-10 16:06:46 -0700 |
commit | f1a6ac58103d7bb1bedc7f22cac408cef3fa726f (patch) | |
tree | a4612e4b762ef303bced41ab117eaceaede38712 | |
parent | eda999189592954dbb6ef6103a52e390cc3c727a (diff) | |
download | knowledge-f1a6ac58103d7bb1bedc7f22cac408cef3fa726f.tar.gz knowledge-f1a6ac58103d7bb1bedc7f22cac408cef3fa726f.zip |
bash shell linting and style guide
-rw-r--r-- | software/bash.page | 6 |
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/ |