← Back to context

Comment by rented_mule

2 months ago

I just tried the one you are replying to and it worked great on macOS. I frequently use a variant of this on my Mac.

That’s interesting. I wonder when that changed. Maybe FreeBSD supports multi arg shebangs now, too

  • The -S argument to env splits the argument on whitespace.

    The shell doesn't support anything, it just passes the string to env.

    So beware quoting and other delimiters that won't work the way you expect.