(no title)
spyremeown | 2 years ago
I don't buy this argument. Ok, it's a standard, but sometimes it's a pain-in-the-hole standard. Bash augmentations lessen some of the pains, and it's just nicer. The only situation is if you're using busybox in a very limited system or you reeeeeally need your script to run on many difference unices, which let's be honest, is not that common nowadays.
JdeBP|2 years ago
The Debian people were concerned, for starters, with how much time the Bourne Again shell spent, at process initialization, setting up things for extensions and interactive features that were never employed in non-interactive "sh" mode; a significant cause for concern given how much of the system was executable shell scripts.
jmclnx|2 years ago
Curious, what are the 3 things ?
But yes, people should always use sh (or ksh) for scripting as opposed to bash, why, it is far more portable to other systems.
synergy20|2 years ago
blueflow|2 years ago
Due to docker, minimalistic Linux'es have been more common, including trimmed-down versions of distros that would otherwise feature bash.
synergy20|2 years ago
kaba0|2 years ago
Both sh and bash are terrible, ugly hacks. Anything that requires more than 3 lines of them (including the #! line) should be written in a proper scripting language.
Though I do agree that cross-platformity to that level is rarely meaningful, and so things like python are just as likely available/can be made available.
wvh|2 years ago
I'm not sure there is a good alternative to sh/bash shell scripts as most dynamic languages have become pretty large dependencies these days.
slondr|2 years ago
sgarland|2 years ago
...that said, having to support bash 3.2 for MacOS is a horrible thing.
jhbadger|2 years ago
ndsipa_pomu|2 years ago
yyyk|2 years ago