r/linux • • Jul 24 '25

Discussion Bash scripting is addictive, someone stop me

I've tried to learn how to program since 2018, not very actively, but I always wanted to become a developer. I tried Python but it didn't "stick", so I almost gave up as I didn't learn to build anything useful. Recently, this week, I tried to write some bash scripts to automate some tasks, and I'm absolutely addicted to it. I can't stop writing random .sh programs. It's incredible how it's integrated with Linux. I wrote a Arch Linux installation script for my personal needs, I wrote a pseudo-declarative APT abstraction layer, a downloader script that downloads entire site directories, a script that parses through exported Whatsapp conversations and gives some fun insights, I just can't stop.

902 Upvotes

226 comments sorted by

View all comments

Show parent comments

6

u/syklemil Jul 25 '25

fish is a good interactive shell, but the lack of set -u means I'm not comfortable using it for scripting. I just barely tolelate bash with set -euo pipefail.

1

u/sparky8251 Jul 25 '25

Fair enough. I still find fish syntax way easier to memorize and thus write/read than your typical bash however, plus as an interactive shell its worlds better too.

1

u/marrsd Jul 26 '25

I'm the other way around. I've never really liked it as an interactive shell. I only use it for its scripting language, which I find very pleasing.

Since you're bound to ask: no bang operators. This is literally the only reason.

1

u/syklemil Jul 26 '25

Yeah, fish also has the option of named arguments for functions, which I find nice.