Lurker News

Comments (173) 27 threads

Show all comments

Showing thread 12 of 27

Kab1r3 replies#
This isn't POSIX compliant is it? I feel like I tried to do something different but trying to put arguments in a shebang and ran into trouble there a year or two ago.
cpuguy83#
It depends on the version of /usr/bin/env.
error9348#
Should be fine, you can even compile and run a C file using a shebang
cerved#
I believe it's compliant but only in the sense that the end result is unspecified by POSIX.

I.e. you can't rely on this working on a POSIX compliant system