Bash Scripting Debate

Discussions critique Bash scripting for its pitfalls, poor readability, and gotchas in complex tasks, advocating alternatives like Python or Perl, while defending its use for simple pipelines and ubiquity.

šŸ“‰ Falling 0.3x Programming Languages
5,006
Comments
20
Years Active
5
Top Authors
#7242
Topic ID

Activity Over Time

2007
2
2008
7
2009
31
2010
35
2011
70
2012
72
2013
109
2014
251
2015
237
2016
224
2017
257
2018
340
2019
323
2020
479
2021
616
2022
562
2023
528
2024
526
2025
307
2026
30

Keywords

CPAN e.g TypeScript HN IMO RUNTIME POSIX shellcheck.net AND github.com bash shell scripting scripts sh script python perl shell script written

Sample Comments

IshKebab • Oct 10, 2020 • View on HN

A compelling argument for why Bash scripts shouldn't exist at all.

tantalor • Nov 7, 2016 • View on HN

Bash is a strange choice, why not a more readable language like python/perl/ruby?

saagarjha • Jul 8, 2019 • View on HN

The writer uses bash, so I wouldn't be that quick to label them.

kaba0 • Nov 26, 2021 • View on HN

Bash scripting and convenient is strange in the same sentence. Bash is an abomination that should not even exist. Like, even thinking about a line of bash code will have 3 bugs.

nasretdinov • Oct 1, 2025 • View on HN

Well, bash as a shell is ok. Writing complex scripts on the other hand...

7kmph • Jan 23, 2018 • View on HN

Things I Wish I’d Known About Bash: don't use it for script

JoeyBananas • Jul 5, 2021 • View on HN

there is a reason why this hasn't been done in the decades since bash was created

dsr_ • May 17, 2018 • View on HN

Bash is everywhere but in small quantities. If it's more than a page of bash, it's probably time to rewrite in something with stricter rules and fewer surprises, or better libraries, or both. Perl or Python is quite common at that level.

echelon • Jan 11, 2025 • View on HN

Why hasn't shell scripting evolved? It's god-awful.

kzhahou • Aug 16, 2015 • View on HN

Is it even up for debate, that bash is hard to get right?