[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: env (GNU coreutils) 5.93 patch
From: |
Bob Proulx |
Subject: |
Re: env (GNU coreutils) 5.93 patch |
Date: |
Fri, 30 Dec 2005 22:39:22 -0700 |
User-agent: |
Mutt/1.5.9i |
Alfred M. Szmidt wrote:
> Also, /usr/bin/env is a very non-standard place for env; it is usually
> located in /bin.
On what systems is env located in /bin/env? The normal location is in
/usr/bin/env. I checked HP-UX, AIX, Solaris, FreeBSD, and various
GNU/Linux systems. All had /usr/bin/env. This is counted upon by
many scripts using /usr/bin/env as a launcher. I would have said it
was a standard but upon a quick search I could not find a reference.
> Some systems can be quite smart though, and things like:
>
> #! awk
>
> work. But alas, I only know of one system that does it this way, the
> GNU system.
Yes, that will be nice. But all of the problems with #! is why it is
well known as the "Berkeley hack". Too useful to be without. To ill
defined to be really portable.
Bob