Subject: Re: CVS commit: basesrc
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Ben Harris <bjh21@netbsd.org>
List: tech-toolchain
Date: 09/13/2002 23:43:07
On Fri, 13 Sep 2002, Jason R Thorpe wrote:

> On Fri, Sep 13, 2002 at 10:29:56PM +0100, Ben Harris wrote:
>
>  > >Use /bin/test explicitly in one place, rather than [ or test (which
>  > >might be a shell built-in).  This allows this script to work otherwise
>  > >unchanged with Solaris 8's /bin/sh.
>  >
>  > Ugh.  What's wrong with using Solaris's POSIX environment (by setting PATH
>  > to `getconf PATH`)?  Hard-coding /bin/test breaks systems which don't have
>  > one (e.g. Debian GNU/Linux).
>
> Feh.  Okay.
>
> The problem with using this is that make(1) (because make(1) uses /bin/sh
> directly) then uses a shell with different PWD semantics as all the scripts.

Hmm.  nbmake should end up using whatever sh was first on the path when it
was built -- see the _PATH_DEFSHELLDIR and _PATH_BSHELL stuff in
tools/make/configure.ac -- so that as long as you have /usr/xpg4/bin first
on your path throughout everything should be OK.

Have you actually confirmed that nbmake is using /bin/sh?  I'd be more
inclined to suspect my recent change to unset PWD in build.sh...

> Big lossage then ensues with symlinks and NFS.

Doesn't it always?

-- 
Ben Harris                                                   <bjh21@netbsd.org>
Portmaster, NetBSD/acorn26           <URL:http://www.netbsd.org/Ports/acorn26/>