Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Oct 2002 16:36:39 -0400 (EDT)
From:      Garrett Wollman <wollman@lcs.mit.edu>
To:        Mark Valentine <mark@thuvia.demon.co.uk>
Cc:        freebsd-standards@FreeBSD.ORG
Subject:   Re: /usr/posix: a first cut
Message-ID:  <200210262036.g9QKadk2025534@khavrinen.lcs.mit.edu>
In-Reply-To: <200210261944.g9QJiErS012646@dotar.thuvia.org>
References:  <20021026143724.D47672@espresso.q9media.com> <200210261944.g9QJiErS012646@dotar.thuvia.org>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Sat, 26 Oct 2002 20:44:14 +0100 (BST), Mark Valentine <mark@thuvia.demon.co.uk> said:

> Portable scripts don't hardwire paths for standard executables, they
> rely on a reasonable default environment for the platform which behaves
> as that platform normally does (there are exceptions to this rule, of
> course).

Actually, portable scripts do the following:

	PATH=$(command -p getconf PATH)

and should never supply explicit paths to the Standard Utilities
(unless it cares to go to the effort of emulating execve() all by
itself).

So any move to create a ghetto for Standard-compliant utilities must
perforce update the Standard Path to put the directory containing the
Standard utilities first.

-GAWollman


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-standards" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210262036.g9QKadk2025534>