Mac@programming.dev to Programmer Humor@programming.dev · 10 months agoYesprogramming.devimagemessage-square87fedilinkarrow-up1819arrow-down131
arrow-up1788arrow-down1imageYesprogramming.devMac@programming.dev to Programmer Humor@programming.dev · 10 months agomessage-square87fedilink
minus-squarequantenzitrone@feddit.delinkfedilinkarrow-up1arrow-down1·10 months 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·10 months 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
.