azet / community_bash_style_guide

Community Bash Style Guide: writing useful and modern bash scripts, seriously.
Creative Commons Attribution 4.0 International
298 stars 37 forks source link

bash Style Or POSIX Shell Style? #13

Closed ldo closed 7 years ago

ldo commented 7 years ago

Is this a style guide specific to bash, or is it for POSIX shells generally? Many of the tips seem to be bash-specific (e.g. use built-in expressions instead of expr), but then you say don’t use backticks because they may not work with some non-bash shell.

Maybe separate out the bash-specific tips from the non-bash-specific ones?

azet commented 7 years ago

it says community bash style guide, does that answer your question? :)