[r6rs-discuss] [Formal] "#! /usr/bin/env" is not "portable."
andre at het.brown.edu
Wed Nov 15 16:10:46 EST 2006
On Wed, 15 Nov 2006, Jens Axel Søgaard wrote:
> AndrevanTonder skrev:
>> Not quite. I am saying the draft should start where the Scheme starts,
>> is in this case on the second line. It should not concern itself with the
>> mechanisms, such as #!, that the host system use to decide where the Scheme
>> starts. It should not even mention them.
> So you suggest something like:
> <script> -> <line>* <script start> <script substance>
> <script start> -> #!program <linefeed>
> where <script substance> is as in the draft
> and <line> is any line not matching #!program.
Well, I am suggesting that a grammar like this might be appropriate
to the Unix spec, or the Kawa spec, or whatever the host system is.
This grammar may indeed be different for different host systems, for
reasons that have nothing to do with Scheme (see the Kawa-related
subthread), and it would be arrogant for the Scheme report to invade
The only thing that really needs to be in the Scheme report is
the grammar for <script substance>.
More information about the r6rs-discuss