[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: /usr/bin/env

This page is part of the web mail archives of SRFI 22 from before July 7th, 2015. The new archives for SRFI 22 contain all messages, not just those from before July 7th, 2015.

> From: Marc Feeley <feeley@xxxxxxxxxxxxxxxx>

> I just found on http://www.bluetail.com/~joe/escript.html 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.