bug-coreutils
[Top][All Lists]
Advanced

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

Re: env (GNU coreutils) 5.93 patch


From: Paul Eggert
Subject: Re: env (GNU coreutils) 5.93 patch
Date: Mon, 02 Jan 2006 00:31:34 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

address@hidden (Bob Proulx) writes:

> On what systems is env located in /bin/env?  The normal location is in
> /usr/bin/env.

POSIX doesn't specify the location for env, so either location conforms
to POSIX.  On Solaris 10, the standard location is /usr/xpg4/bin/env.
(/usr/bin/env doesn't conform to POSIX, I guess....)

> This is counted upon by many scripts using /usr/bin/env as a
> launcher.

That works on most systems, but it's not portable according to POSIX.

The "right" way to fix this is to substitute the absolute path name
into the shell script, I'm afraid.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]