Mac to Programmer Humor@programming.dev • 1 year agoYesprogramming.devimagemessage-square87fedilinkarrow-up1821arrow-down133
arrow-up1788arrow-down1imageYesprogramming.devMac to Programmer Humor@programming.dev • 1 year agomessage-square87fedilink
minus-square@quantenzitrone@feddit.delinkfedilink0•1 year ago/bin/bash won’t work on every system for example NixOS some other systems may have bash in /usr/bin or elsewhere
minus-square@quantenzitrone@feddit.delinkfedilink1•1 year agoBinaries are not in /usr/bin or /bin except for /bin/sh and /usr/bin/env. Programs should not assume fixed paths for binaries and instead look for them in $PATH.
/bin/bash
won’t work on every system for example NixOS some other systems may have bash in /usr/bin or elsewhereNixOS didn’t do /usr merge?
Binaries are not in
/usr/bin
or/bin
except for/bin/sh
and/usr/bin/env
. Programs should not assume fixed paths for binaries and instead look for them in$PATH
.