[r6rs-discuss] [Formal] "#! /usr/bin/env" is not "portable."
Anton van Straaten
anton at appsolutions.com
Wed Nov 15 15:22:25 EST 2006
Alan Watson wrote:
> Sorry if I wasn't clear, but my question was not tongue in cheek. It was
> a rhetorical question giving an example of why using the term "script"
> and the #! notation is a bad idea for something that is not necessarily
> a script (in the widely understood sense of something that is read into
> a translator in source form and executed immediately).
It may be worth noting that one difference between the case for C and
for Scheme is that all the Scheme compilers which currently aim for R5RS
compliance (and some that don't) also include "interpreters" that are
capable of executing a source file without requiring a separate compile
step. So the degree of applicability of the notion of scripts is far
greater across all relevant Schemes, than it is for most C implementations.
That said, I agree that the "ignore first line" semantics may not be the
best possible compromise.
More information about the r6rs-discuss