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

Aubrey Jaffer agj at alum.mit.edu
Thu Nov 16 14:10:47 EST 2006


 | From: "Arthur A. Gleckler" <arthur at zurich.csail.mit.edu>
 | Date: Thu, 16 Nov 2006 08:45:34 -0800
 | 
 | And why should Unix implementations own the top line of every
 | script file?  What happens when another operating system wants
 | control over the top line?

It is possible to make top script lines which work with Linux and many
other Unixes and Windows:

  #! /usr/local/bin/scm \ %0 %*

This is decribed in:
http://swiss.csail.mit.edu/~jaffer/scm_3.html#SEC38

(Windows requires the sharpbang program
http://swiss.csail.mit.edu/ftpdir/scm/sharpbang.zip for this to work)



More information about the r6rs-discuss mailing list