cm0002@lemmy.world to Programmer Humor@programming.dev · 1 day agoLike programming in bashlemmy.mlimagemessage-square178fedilinkarrow-up11.52Karrow-down115cross-posted to: [email protected]
arrow-up11.51Karrow-down1imageLike programming in bashlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 1 day agomessage-square178fedilinkcross-posted to: [email protected]
minus-squarestetech@lemmy.worldlinkfedilinkarrow-up1arrow-down1·edit-218 hours 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-squarejxklinkfedilinkarrow-up4·15 hours 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·15 hours 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.