Back to front pageView on Hacker News (opens in a new tab)Show HN: #!/usr/bin/env docker run (opens in a new tab)gist.github.com496 pointsby adtac (on Hacker News)2 years agogist.github.com (opens in a new tab)#!/usr/bin/env docker run#!/usr/bin/env docker run. GitHub Gist: instantly share code, notes, and snippets.Comments (173) 27 threadsShow all commentsShowing thread 12 of 27[-]Kab1r2 years ago3 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.cpuguy832 years ago#It depends on the version of /usr/bin/env.error93482 years ago#Should be fine, you can even compile and run a C file using a shebangcerved2 years ago#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
Show HN: #!/usr/bin/env docker run (opens in a new tab)gist.github.com496 pointsby adtac (on Hacker News)2 years ago
Kab1r2 years ago3 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.
cerved2 years ago#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
Comments (173) 27 threads
Show all comments
Showing thread 12 of 27
I.e. you can't rely on this working on a POSIX compliant system