Puredyne/Coding Style

Shell Scripting
This guideline is heavily inspired from the Debian Live Coding Style.

Compatibility

 * Don't use syntax or semantics that are unique to the Bash shell. For example, the use of array constructs.
 * Only use the POSIX subset - for example, use  over.
 * You can check your scripts with 'sh -n' and 'checkbashisms'

Indenting

 * Always use tabs over spaces.

Wrapping

 * Generally, lines are 80 chars at maximum.
 * Use the "Linux style" of line breaks:
 * The same holds for functions:

Variables

 * Variables are always in capital letters.
 * Use braces around variables; eg. write  instead of.
 * Always protect variables with respect to potential whitespaces, write  not.
 * For consistency reasons, always use quotes when assigning values to variables:
 * If multiple variables are used, quote the full expression:

Miscellaneous

 * Use  as a separator in calls to sed, e.g..
 * Don't use the test command for comparisons or tests, use, e.g.   and not.