Top all-time · #8889
vaneyckt.io
Personal blog · vaneyckt.io/postsprogramming
vaneyckt.io is a personal blog at vaneyckt.io about programming. Since 2016, 9 different Hacker News readers have linked it 11 times, most often “Safer bash scripts with 'set -euxo pipefail' (2015)”. The last post was in 2018, but the archive is still widely read.
Too few sampled comments (3) to say how often HN recommends it.?
Why HN links it
HN readers link vaneyckt.io's posts on safer Bash scripts, especially the set -Eeuo pipefail flags and how they prevent silent failures. One commenter calls it a better introduction than the HN submission.
Summarised by Claude from a sample of 3 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Most-linked posts?
- Safer bash scripts with 'set -euxo pipefail' (2015)7 people · 8 mentions · first linked 2018-11-20
What Hacker News says?
Hey, the flag meanings are explained in the article I linked in the post: > For details on what options exactly set -Eeuo pipefail changes and how they will protect you, I refer you to the article I have in my bookmarks for a few years now. Link: https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_p... About "just like JavaScript" - it was sarcasm ;-) I write in TypeScript daily and still make fun of JS. But…
Comment linking /posts/safer_bash_scripts_with_set_euxo_pipefail/
on “Minimal safe Bash script template”Submitted Safer bash scripts with 'set -euxo pipefail' (2015) as a story · 19 points
HN discussionI use "set -Eeuo pipefail" in pretty much all bash scripts. (and often -x as well) Makes things much saner. This post is a better introduction than the submission: https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_p...
Comment linking /posts/safer_bash_scripts_with_set_euxo_pipefail/
on “Why doesn't Bash’s ‘set -e’ do what I expected? (2021)”Submitted Safer bash scripts with 'set -euxo pipefail' as a story · 5 points
HN discussionYes, ‘set -euo pipefail’ is a must for safety in every bash script, I had to learn that the hard way too. More info: https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_p...
Comment linking /posts/safer_bash_scripts_with_set_euxo_pipefail/
on “When Failures Align”Submitted Safer bash scripts with 'set -euxo pipefail' options as a story · 4 points
HN discussionSubmitted Safer bash scripts with 'set -euxo pipefail' as a story · 2 points
HN discussionSubmitted Ruby concurrency: in praise of condition variables as a story · 2 points
HN discussionSubmitted Safer bash scripts with 'set -euxo pipefail' as a story · 1 points
HN discussionSubmitted How to write your own rspec retry mechanism as a story · 1 points
HN discussionSubmitted The disaster that is Ruby's timeout method as a story · 1 points
HN discussion