cm0002@lemmy.world to Programmer Humor@programming.dev · 3 个月前Like programming in bashlemmy.mlexternal-linkmessage-square185fedilinkarrow-up11.69Karrow-down118cross-posted to: programmerhumor@lemmy.ml
arrow-up11.67Karrow-down1external-linkLike programming in bashlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 3 个月前message-square185fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squarestetech@lemmy.worldlinkfedilinkarrow-up1arrow-down1·edit-22 个月前 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·2 个月前Btw, all three set options given above are included in POSIX since 2024: https://pubs.opengroup.org/onlinepubs/9799919799/
minus-squarestetech@lemmy.worldlinkfedilinkarrow-up2arrow-down1·2 个月前Ooh, 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.