3 ms·
Won't work at all without a `/bin/bash` executable. Maybe `/bin/sh` is even more universal? I always use `/usr/bin/env bash`, which looks in $PATH rather than r
by chriswarbo 4y ago
Won't work at all without a `/bin/bash` executable. Maybe `/bin/sh` is even more universal? I always use `/usr/bin/env bash`, which looks in $PATH rather than relying on "global" namespaces (/, /usr, /usr/local, etc.)
- shiomiru 4y agoI prefer just /bin/sh too, it's portable and generally faster. When I get to a point where I'd need bash extensions, it's a sign that I should be using another language.
- bradknowles 4y agoExcept where /bin/sh is actually a link to the "ash" shell, and stuff suddenly doesn't work the right way anymore. I'm looking at you, Alpine Linux.