[r6rs-discuss] [Formal] "#! /usr/bin/env" is not "portable." It's Unix-specific.

From: AndrevanTonder <andre>
Date: Wed Nov 15 16:14:46 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,
>> which
>> 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
this space.

The only thing that really needs to be in the Scheme report is
the grammar for <script substance>.

Cheers
Andre
Received on Wed Nov 15 2006 - 16:10:46 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:00 UTC