4 ms·
Bash scripts are way more portable. But for little scripts that only I will run on my computer, Fish is great.
by oscilloscope 9y ago
Bash scripts are way more portable. But for little scripts that only I will run on my computer, Fish is great.
- dgsb 9y agoBash 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.
- majewsky 9y agoCorrection: 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.
- dgsb 9y agoSure 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 ...
- ptman 9y agoshellcheck helps a bit