dash/ash
dash/ash
Posted Oct 1, 2014 20:58 UTC (Wed) by chutzpah (subscriber, #39595)Parent article: Bash gets shellshocked
The thing about moving to dash or ash for shell scripts is that some of the "bashisms" are truly useful features. Arrays, [[ and some of the extended variable expansions are truly useful when writing shell scripts. Scripts that follow pure-posix design tend to be verbose and full of quoting bugs just waiting to manifest themselves ([[ does wonders in helping make quoting problems go away). In general Linux does not limit itself to what is in posix, there are many examples of extending it in useful ways, why does this seem to no longer apply to shells?
Some minor investigation finds that mksh appears to be an alternative that supports a reasonable number of these sorts of these features, while still being relatively lightweight.
