Mac@programming.dev to Programmer Humor@programming.dev · 1 year agoYesprogramming.devimagemessage-square87fedilinkarrow-up1813arrow-down132
arrow-up1781arrow-down1imageYesprogramming.devMac@programming.dev to Programmer Humor@programming.dev · 1 year agomessage-square87fedilink
minus-squarequantenzitrone@feddit.delinkfedilinkarrow-up1arrow-down1·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-squarequantenzitrone@feddit.delinkfedilinkarrow-up1·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
.