Email list hosting service & mailing list manager

Re: /usr/bin/env Bengt Kleberg 25 Mar 2001 10:51 UTC

> From: Marc Feeley <xxxxxx@IRO.UMontreal.CA>

> I just found on an
> interesting approach to write the "#!" line of a script.  The idea is
> to call up /usr/bin/env, and then it starts the script-interpreter
> with the command line arguments:
>    #! /usr/bin/env script-interpreter
>    ...
> Anybody have experience, or comments about this?  Is /usr/bin/env
> "standard" or POSIX?

It (env) is in the Single Unix Spec.

It looks cleaner than a /bin/sh trampoline.