Skip to content

Bash Best Practice Style Guides

[!NOTE] source: https://google.github.io/styleguide/shellguide.html#s1.1-which-shell-to-use

Error handling

[!NOTE] source: https://gist.github.com/mohanpedala/1e2ff5661761d3abd0385e8223e16425

original: http://redsymbol.net/articles/unofficial-bash-strict-mode/

Formatting

  • Indent 2 spaces. No tabs.