We prefer hyphen-word
over snake_case
over CamelCase
.
However, dash
and busybox’s ash
only allows _
and alnum as variable and
function names.
And sh does not has namespaces. Thus we use CamelCase
, and save _
for
namespaces.
BusyBox uses -s
over --long
options. So we prefer -s
over --long
for
commands included in busybox.
For other commands, you prefer --long
for self-documentation.
Test against dash.
Use set -e
.
Use local
variables in function definitions when possible.