cm0002@lemmy.world to Programmer Humor@programming.dev · 2 days agoLike programming in bashlemmy.mlexternal-linkmessage-square184fedilinkarrow-up11.59Karrow-down116
arrow-up11.57Karrow-down1external-linkLike programming in bashlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 2 days agomessage-square184fedilink
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.