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

From: Eli Barzilay <eli>
Date: Wed Nov 15 14:51:02 2006

On Nov 15, Per Bothner wrote:
> When you need to pass extra options you can use Kawa's
> "--script2 FILENAME" which run the named file as a source file,
> skipping the first two lines. This allows:
>
> #!/bin/sh
> exec kawa --various --options --script2 "$0" "$_at_"
> (define (foo) ...)
> (foo ...)

An easier solution is to ise #|...|#

  #!/bin/sh
  #|
  exec whatever "$0" "$_at_"
  |#
  ...

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!
Received on Wed Nov 15 2006 - 14:50:53 UTC

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