From f1a6ac58103d7bb1bedc7f22cac408cef3fa726f Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 10 Dec 2017 19:55:46 -0800 Subject: bash shell linting and style guide --- software/bash.page | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'software') 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/ -- cgit v1.2.3