<story><title>Pure sh bible – Posix sh alternatives to external processes</title><url>https://github.com/dylanaraps/pure-sh-bible</url></story><parent_chain><item><author>quotemstr</author><text>As you should. Bash --- at least bash 3.x --- is available literally everywhere and has many features essential for robust programming, like local variables. Instead of writing for some antique shell, we should all just write for bash or zsh or something modern. I don&amp;#x27;t care about being compatible with some random AIX installation that&amp;#x27;s from 1870 and powered by a steam engine.</text></item><item><author>klodolph</author><text>I appreciate that this isn’t full of Bash-isms—it’s sometimes hard to find out how to do something in a shell script, because you get a bunch of Bash results.</text></item></parent_chain><comment><author>saagarjha</author><text>sh is used because it is POSIX sh–you know it will work not &amp;quot;literally everywhere&amp;quot; but really, truly, literally everywhere. And your bashisms aren&amp;#x27;t going to do all that well on BusyBox, or dash. Just because &lt;i&gt;you&lt;/i&gt; don&amp;#x27;t care doesn&amp;#x27;t mean that we should make incompatible scripts and not be aware that we are doing so.</text></comment>
<story><title>Pure sh bible – Posix sh alternatives to external processes</title><url>https://github.com/dylanaraps/pure-sh-bible</url></story><parent_chain><item><author>quotemstr</author><text>As you should. Bash --- at least bash 3.x --- is available literally everywhere and has many features essential for robust programming, like local variables. Instead of writing for some antique shell, we should all just write for bash or zsh or something modern. I don&amp;#x27;t care about being compatible with some random AIX installation that&amp;#x27;s from 1870 and powered by a steam engine.</text></item><item><author>klodolph</author><text>I appreciate that this isn’t full of Bash-isms—it’s sometimes hard to find out how to do something in a shell script, because you get a bunch of Bash results.</text></item></parent_chain><comment><author>umanwizard</author><text>One counterexample: bash isn’t available in the base system of typical BSD variants (though, yes, you can install it from ports).</text></comment>