11.1. Compatibility
Prev
Chapter 11. Coding Style
Next
11.1. 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 $(foo) over `foo`.
You can check your scripts with 'sh -n' and 'checkbashisms'