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

From: Aubrey Jaffer <agj>
Date: Thu Nov 16 14:12:35 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)
Received on Thu Nov 16 2006 - 14:10:47 UTC

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