BlackEco@lemmy.blackeco.com to Programming@programming.devEnglish · 2 days agoError handling in bashnotifox.comexternal-linkmessage-square29fedilinkarrow-up1106arrow-down11cross-posted to: linux@programming.dev
arrow-up1105arrow-down1external-linkError handling in bashnotifox.comBlackEco@lemmy.blackeco.com to Programming@programming.devEnglish · 2 days agomessage-square29fedilinkcross-posted to: linux@programming.dev
minus-squarecr1cket@sopuli.xyzlinkfedilinkarrow-up2·5 hours agoUhm, yes. I noted exactly that as well. Also bash is not always at /bin/bash :-)
minus-squareMonkderVierte@lemmy.ziplinkfedilinkarrow-up2·edit-25 hours agoYeah ok, /usr/bin/env then. Edit: Or /bin/sh (oold convention) and check for bash.
minus-squarecr1cket@sopuli.xyzlinkfedilinkarrow-up3·5 hours 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.