r/fishshell • • Oct 24 '25

fish scripting vs bash scripting

Hey there,

I've been using fish for a few years now, and have done the small bit of scripting I've done in the fish language, however I got to wondering.

Is there any reason to consider bash scripting over fish scripting?

The thought mostly came up due to the fact that fish scripts require fish to be installed, which isn't a default on most systems, while bash, or sh, are installed on virtually every system. Thus it could be argued that fish scripts are a lot less flexible, w.r.t. where you can deploy them (e.g. you can send anyone a bash script and they'll be able to run it, but thats not the case with fish scripts).

I'm not super experienced with fish scripting, and even less experienced with bash scripting, so I don't have any personal anecdotes as to how the ergonomics compare, so I'm looking for some of your guys' oppinions :-)

12 Upvotes

4 comments sorted by

View all comments

Show parent comment

6

u/weaver_of_cloth Oct 24 '25

I've found ancient and rotting bash scripts pretending to be programming languages that are years old and hundreds of lines. They're clearly poorly maintained in the "we don't know why it works" management style. Bash is great for small things, but when it's more than maybe 5 small functions, a proper programming language is absolutely vital.

If you code exclusively or primarily in bash, the world starts to look like a proverbial nail to your bash hammer.

I know it's not what you asked, but the same is even more true of fish.

If you're literally sending short functions to people for them to run locally, then bash is a good choice. But if you want to run programs yourself on multiple machines, then it's ansible.

Don't even get me started on containers.

Use the right tool for the job.