3 ms·
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 tw
by Kab1r 3y ago
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 3y agoIt depends on the version of /usr/bin/env.
- error9348 3y agoShould be fine, you can even compile and run a C file using a shebang
- cerved 3y agoI 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