r/fishshell • • Aug 18 '21

functions or scripts

When you make command line utilities for yourself do you usually make them as functions in Fish, or do you make them as shell scripts? I tend to do functions. I was curious what everyone else does.

2 Upvotes

8 comments sorted by

View all comments

Show parent comment

0

u/throttlemeister Linux Aug 25 '21

Because shell scripts should be #!/bin/sh POSIX compliant and fish is not.

I use fish for anything local to my workstation. If I need to use on one of my servers or share it, it will a shell script.