BlackEco ( BlackEco@lemmy.blackeco.com ) to Programming@programming.devEnglish · 8 months agoError handling in bashnotifox.comexternal-linkmessage-square15linkfedilinkarrow-up172cross-posted to: linux@programming.dev
arrow-up172external-linkError handling in bashnotifox.comBlackEco ( BlackEco@lemmy.blackeco.com ) to Programming@programming.devEnglish · 8 months agomessage-square15linkfedilinkcross-posted to: linux@programming.dev
minus-squarecr1cket ( cr1cket@sopuli.xyz ) linkfedilinkarrow-up2·8 months agoUhm, yes. I noted exactly that as well. Also bash is not always at /bin/bash :-)
minus-squareMonkderVierte ( MonkderVierte@lemmy.zip ) linkfedilinkarrow-up2·edit-28 months agoYeah ok, /usr/bin/env then. Edit: Or /bin/sh (oold convention) and check for bash.
minus-squarecr1cket ( cr1cket@sopuli.xyz ) linkfedilinkarrow-up2·8 months 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.