BlackEco@lemmy.blackeco.com to Programming@programming.devEnglish · 3 days agoError handling in bashnotifox.comexternal-linkmessage-square29fedilinkarrow-up1108arrow-down11
arrow-up1107arrow-down1external-linkError handling in bashnotifox.comBlackEco@lemmy.blackeco.com to Programming@programming.devEnglish · 3 days agomessage-square29fedilink
minus-squarecr1cket@sopuli.xyzlinkfedilinkarrow-up2·1 day agoUhm, yes. I noted exactly that as well. Also bash is not always at /bin/bash :-)
minus-squareMonkderVierte@lemmy.ziplinkfedilinkarrow-up2·edit-21 day agoYeah ok, /usr/bin/env then. Edit: Or /bin/sh (oold convention) and check for bash.
minus-squarecr1cket@sopuli.xyzlinkfedilinkarrow-up3·1 day agoWell, that won’t work on openbsd (and probably freebsd), because non-default.stuff lands in /usr/local/bin. For Linux you should be fine though.
Uhm, yes. I noted exactly that as well.
Also bash is not always at /bin/bash :-)
Yeah ok, /usr/bin/env then.
Edit: Or /bin/sh (oold convention) and check for bash.
Well, that won’t work on openbsd (and probably freebsd), because non-default.stuff lands in /usr/local/bin.
For Linux you should be fine though.