FenderLang / Fender

A functional scripting language, intended for string manipulation and general scripting on the command line
MIT License
13 stars 0 forks source link

More portable shebang #100

Closed eliminmax closed 1 year ago

eliminmax commented 1 year ago

The shebang (the #!/bin/fender line) requires fender to be installed in the /bin directory. If installed to a different directory, it does not work.

Using #!/usr/bin/env fender will use the first fender binary found within the PATH environment variable - so if it's installed to /usr/local/bin, which is the conventional place for binaries installed by the local admin rather than the system, or /home/eliminmax/.cargo/bin, which is where cargo installs binaries by default on my system, it would still work.

I am a bit of a control freak when it comes to the software on my systems, and I like to keep things organized