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

Eli Barzilay eli at barzilay.org
Wed Nov 15 14:50:53 EST 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" "$@"
> (define (foo) ...)
> (foo ...)

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

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

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!



More information about the r6rs-discuss mailing list