Submission timeline
2007–2026One 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 orderI'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.)
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
- Total points
- 1104
- Total comments
- 334
100+ points or 50+ comments
reference only — not used in Hall rules or ranking
reference only — not used in Hall rules or ranking
Every submission
| Date | Title as submitted | By | Points | Comments |
|---|---|---|---|---|
| 2018-05-13 | Safe ways to do things in bashFirst breakout · Best thread | signa11 | 892 | 240 |
| 2020-09-04 | Safe ways to do things in bash | dmckeon | 4 | 0 |
| 2021-04-03 | How to do things safely in Bash (2018) | soheilpro | 173 | 93 |
| 2026-03-31 | Safe ways to do things in bash (2023)Latest 20+ point return | gautamsomani | 35 | 1 |
