[r6rs-discuss] [Formal] "#! /usr/bin/env" is not "portable." It's
Arthur A. Gleckler
arthur at zurich.csail.mit.edu
Tue Nov 14 23:02:22 EST 2006
On Nov 14, 2006, at 7:04 PM, Peter Gavin wrote:
> I would suggest having the token #! be the start of a comment; the
> comment would continue until either the end of line, or some other
> token (!#, for instance) was reached. (It doesn't really matter to me
> how the comment is terminated.) Like any other comment, the compiler
> would completely ignore it.
> This would be completely portable, and allow systems that use the #!
> convention to work as expected. Other systems that do not use the
> convention (Microsoft Windows is the primary example) would most
> likely end up using the file extension, anyway.
> In addition, I would drop the requirement that the first line be
> ignored. That wouldn't be needed were #! a comment indicator.
That's a much better proposal than the current spec. I still prefer
nothing at all, but this is a reasonable, more portable compromise.
More information about the r6rs-discuss