HN Hall of Fame Weekly email

Safe ways to do things in bash

github.com Books & learning Tutorials & guides Software engineering Candidate
Screenshot of github.com captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 4 calendar years, with breakout response in 2 of them.

submissions
4
submitters
4
observed span
2018–2026
peak thread · 240 comments
892 pts
latest 20+ return · 2026-03-31
35 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

I've written a ridiculous amount of shell script in my day, especially when doing "devops" before we had a term like "devops" to describe it. I've fallen in almost every pit bash has. With that background, here is my opinion. 1. This article contains excellent advice and should be starred for later retrieval. 2. Having basic scripting skills will make you a way better programmer. Many times I've done huge refactors and needle-in-hay-stack searches using only shell commands. 3. Shell…

I've recently taken to not bothering with shell scripts at all. I just use Python instead. The type system, while it's by no means state of the art, is still miles ahead of the stringly-typed bash. The libraries are excellent; much can be done with the standard library alone. The scripts are much faster (even though the language isn't particularly tuned for performance), since I don't need to spawn a subprocess for each little string manipulation task. And if I…

In Python, `shlex` has utilities for quoting and tokenizing strings for POSIX shells. > Documentation: https://docs.python.org/3/library/shlex.html (Windows users: CMD is hopeless. Sorry. Try powershell.)

hun3·35-point thread·

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
2

100+ points or 50+ comments

Total points
1104

reference only — not used in Hall rules or ranking

Total comments
334

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2018-05-13Safe ways to do things in bashFirst breakout · Best threadsigna11892240
2020-09-04Safe ways to do things in bashdmckeon40
2021-04-03How to do things safely in Bash (2018)soheilpro17393
2026-03-31Safe ways to do things in bash (2023)Latest 20+ point returngautamsomani351