3 ms·
Bash just sort happened to be the lowest common denominator in most unix style environments. Because it just sorta ended up being the default. Unix ended up b
by sumtechguy 5y ago
Bash just sort happened to be the lowest common denominator in most unix style environments. Because it just sorta ended up being the default. Unix ended up being this different thing where each distro seems to be kind of unique. Then on top of that they are very easy to customize. So while one distro you can assume a particular python level the next disto python is totally optional. Mix in containers and docker images and you have a new level of 'what may or may not be there'. Ah but you may say 'oh just use tech XYZ' that may or may not have the exact same issue as using python in its place. So either 'deal with it' and install what is needed and keep it up to date. Or 'play the LCD game' you use only the bare min and hope you can build something useful enough in bash when another lang may be more appropriate.
- hulitu 5y agoI thought that was sh (i.e. bourne shell). As far as i remember bash is not the default shell on a lot of unices.
- cfeliped 5y agoMy understanding is that sh is a specification, not an implementation. Most images will either have bash or ash installed. ash, being lightweight, is the choice of alpine and related distros.
- asveikau 5y agoThis is a bit of a Linux specific view of the universe. Yes posix has a standard for how sh should work. But there were specific implementations of sh, and you would get those on commercial Unix or *BSD. Later shells came in and filled some gaps. OpenBSD still has ksh by default. Linux distros had bash as their /bin/sh.
- cfeliped 5y agoI didn't know that. Thank you for the explanation!