upvote
Why would that be a shame? "bc" is a mandatory POSIX command, while /bin/bash isn't (/bin/sh is the standard).
reply
deleted
reply
Which distro are you running? Perchance did you run the shell script in alpine Linux (docker)?
reply
it doesn't seem to be installed on my endeavouros laptop
reply
deleted
reply
You are fun.
reply
Are we really at the "redditor insult" type comments stage of HN now? There is nothing wrong with saying a piece of code is broken.
reply
Broken seems a little hyperbolic, it has an implicit dependency on a standard POSIX tool.
reply
I suppose, but my Debian didn’t seem to ship with it.
reply
deleted
reply