this post was submitted on 05 Mar 2025
1569 points (99.0% liked)

Programmer Humor

21016 readers
1332 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] stetech@lemmy.world 0 points 1 day ago* (last edited 1 day ago) (1 children)

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.

[–] jxk@sh.itjust.works 4 points 1 day ago (1 children)

Btw, all three set options given above are included in POSIX since 2024: https://pubs.opengroup.org/onlinepubs/9799919799/

[–] stetech@lemmy.world 1 points 1 day ago

Ooh, you’re totally right!! I forgot about that since it’s not in the older versions.