logoalt Hacker News

Zababalast Tuesday at 3:03 PM1 replyview on HN

>This second method is, by the way, argued to increase compatibility as we utilize env to locate bash, which may not be located at /bin/bash. How true this is, is a topic I dare not enter.

At least it seems important on NixOS, I had to rewrite a few shebangs on some scripts that used /bin/bash and didn't work on NixOS.


Replies

benchloftbrunchlast Tuesday at 7:33 PM

And on macOS if you need bash > 3.2