Hacker News new | ask | show | jobs
by oscilloscope 3112 days ago
Bash scripts are way more portable. But for little scripts that only I will run on my computer, Fish is great.
1 comments

Bash scripts are also much more brittle. I don't do bash scripting at all anymore. I fish for personal/usage or perl/python for shared scripts.
Correction: Most bash scripts are brittle. You can write rock-solid bash scripts if you know what you're doing. For example, Arch Linux is an entire distribution built mostly on bash scripts.

Of course, if your scripts only run on your own machine (which is a huge if), then fish is probably better.

Sure you probably can write non-brittle bash script, but it has always seemed above my own ability. Beyond bash ubiquity, I've never found to have any other value against other slightly higher language whether it is perl, tcl, python, etc ...
shellcheck helps a bit