Re:Shell Script Best Practices, from a decade of scripting t...
by kdmccormick on Thursday October 27, 2022 @10:58AM
(#33358520)
If I may ask, why do you only have sh in production?
[ Parent
| on HN ]
Re:Shell Script Best Practices, from a decade of scripting t...
by Cpoll on Thursday October 27, 2022 @11:07AM
(#33358671)
A common containerization philosophy is to use a bare-minimum base image and add only what you need. Something like an Alpine container doesn't come with Bash.
Re:Shell Script Best Practices, from a decade of scripting t...
by 0xbadcafebee on Thursday October 27, 2022 @11:08AM
(#33358685)
Alpine docker container only comes with ash shell by default. If you don't use any Bash-isms, you can just write a POSIX shell script. Otherwise if you have many containers from many different sources, you might have to bake all new containers just to add Bash to them.