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

Arthur A. Gleckler arthur at zurich.csail.mit.edu
Tue Nov 14 15:13:37 EST 2006


On Nov 14, 2006, at 11:57 AM, Andre van Tonder wrote:

> On Tue, 14 Nov 2006, Arthur A. Gleckler wrote:
>
>> Perhaps, but the spec. refers to the "#! /usr/bin/env scheme- 
>> script" line as the "default portable form."  But it's portable  
>> only to Unix systems.
>
> Not even!  The specification requires even implementations running  
> on Unix to ignore the first line, which can contain anything at all.

Yes, but then the spec. shouldn't specify what the first line must  
contain at all -- only that it is ignored.

But it seems even better to remove this consideration entirely from  
the "script" file, using some OS-specific wrapper file whose format  
is perhaps the subject of an SRFI.



More information about the r6rs-discuss mailing list