1 Shell scripts are the recommended choice for ZEDLETs that mostly call
2 other utilities and do relatively little data manipulation.
4 Shell scripts MUST work on both bash and dash.
6 Shell scripts MUST run cleanly through ShellCheck:
7 http://www.shellcheck.net/
9 General functions reside in "zed-functions.sh". Use them where applicable.
11 Additional references that may be of use:
13 Google Shell Style Guide
14 https://github.com/google/styleguide/blob/gh-pages/shell.xml
17 https://wiki.ubuntu.com/DashAsBinSh
19 Common shell script mistakes
20 http://www.pixelbeat.org/programming/shell_script_mistakes.html
22 Filenames and Pathnames in Shell: How to do it Correctly
23 http://www.dwheeler.com/essays/filenames-in-shell.html
25 Autoconf: Portable Shell Programming
26 https://www.gnu.org/software/autoconf/manual/autoconf.html#Portable-Shell
28 Please BE CONSISTENT with the existing style, check for errors,
29 minimize dependencies where possible, try to be portable,
30 and comment anything non-obvious. Festina lente.