cm0002@lemmy.world to Programmer Humor · 2 days agoLike programming in bashlemmy.mlimagemessage-square184fedilinkarrow-up11.59Karrow-down116cross-posted to: [email protected][email protected]
arrow-up11.58Karrow-down1imageLike programming in bashlemmy.mlcm0002@lemmy.world to Programmer Humor · 2 days agomessage-square184fedilinkcross-posted to: [email protected][email protected]
minus-squarestetech@lemmy.worldlinkfedilinkarrow-up1arrow-down1·edit-21 day ago set -euo pipefail Fun fact, if you’re forced to write against POSIX shell, you aren’t allowed to use these options, since they’re not a thing, which is (part of) the reason why for example Google doesn’t allow any shell language but bash, lol.
minus-squarejxk@sh.itjust.workslinkfedilinkarrow-up4·1 day agoBtw, all three set options given above are included in POSIX since 2024: https://pubs.opengroup.org/onlinepubs/9799919799/
minus-squarestetech@lemmy.worldlinkfedilinkarrow-up2arrow-down1·1 day agoOoh, you’re totally right!! I forgot about that since it’s not in the older versions.
Fun fact, if you’re forced to write against POSIX shell, you aren’t allowed to use these options, since they’re not a thing, which is (part of) the reason why for example Google doesn’t allow any shell language but bash, lol.
Btw, all three set options given above are included in POSIX since 2024: https://pubs.opengroup.org/onlinepubs/9799919799/
Ooh, you’re totally right!! I forgot about that since it’s not in the older versions.