Mac@programming.dev to Programmer Humor@programming.dev · 1 year agoYesprogramming.devimagemessage-square76fedilinkarrow-up1749arrow-down131
arrow-up1718arrow-down1imageYesprogramming.devMac@programming.dev to Programmer Humor@programming.dev · 1 year agomessage-square76fedilink
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
.