HN Hall of Fame Weekly email

Shellcheck finds bugs in your shell scripts

Screenshot of www.shellcheck.net captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 10 calendar years, with breakout response in 3 of them.

submissions
25
submitters
22
observed span
2013–2025
peak thread · 129 comments
342 pts
latest 20+ return · 2023-11-23
342 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

Some tips of my own: - It's almost always preferable to put `-u` (nounset) in your shebang to cause using undeclared variables to be an error. The only exception I typically run across is expansion of arrays using "${arr[@]}" syntax -- if the array is empty, this is considered unbound. - You can use `-n` (noexec) as a poor-man's attempt at a dry-run, as this will prevent execution of commands. - Also handy is `-e` (errexit), but you must take…

Just spent some time sending my scripts to this site for it to analyse and see what it does. I can see that while it wasn't be able to tell me of more efficient code to achieve my goal (wasn't really hopping for that), it did spot 1) one liners where some commands are not needed, 2) variables which are not used, 3) where I should use double quotes to prevent word splitting and 4) lines where my ssh was…

dpina·102-point thread·

See also the version you can compile yourself and run in the terminal, written in Haskell: https://github.com/koalaman/shellcheck

Plugins for Sublime Text and Atom: https://github.com/SublimeLinter/SublimeLinter-shellcheck https://atom.io/packages/linter-shellcheck

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
3

100+ points or 50+ comments

Total points
836

reference only — not used in Hall rules or ranking

Total comments
248

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2013-05-21ShellCheck: Online shell script analyzerfbeeper10
2013-08-16ShellCheck - automatically detects problems with sh/bash scripts and commandsAndreyKarpov10
2013-10-30ShellCheck – shell script static analysis toollelf110
2014-04-03ShellCheck – linting/static analysis tool for sh/bash scriptsasianexpress31
2014-05-29Online shell script analyzerzerop50
2014-08-15ShellCheck – Online shell script analyzernpongratz2714
2015-01-17Easily validate your shell scriptskeruspe11
2015-01-27ShellCheckDLion10
2015-02-05Shellcheck: a static analysis tool for shell scriptsFirst breakoutpyotrgalois10246
2015-05-01ShellCheck: linter for shell scriptscallum8531
2015-09-01Shellcheck – automatically detects problems with sh/bash scripts and commandsck230
2016-06-05ShellCheck – shell script analysis toolshawndumas20
2017-03-13ShellCheck – shell script analysis toolbasename20
2017-03-26Finds bugs in your shell scriptsnandaja10
2017-04-04ShellCheck – shell script analysis tooltype010
2017-05-12ShellCheck: static analysis tool for shell scriptshandpickednames40
2018-08-08Finds bugs in your shell scriptsLinuxBender10
2018-10-02Find bugs in your shell scriptsLinuxBender20
2019-11-05ShellCheck: Finds bugs in your shell scriptsmnem30
2021-05-03ShellCheck: Finds bugs in your shell scriptsHall inductionsuperasn30154
2023-05-01ShellCheck: Finds bugs in your shell scriptsLinuxBender120
2023-08-31ShellCheck: Static analysis tool for shell scriptsKolmogorovComp20
2023-10-06Shellcheck – finds bugs in your shell scriptsudev409620
2023-11-23Shellcheck finds bugs in your shell scriptsBest thread · Latest 20+ point returnmooreds342129
2025-04-16Shellcheckmooreds32