Subject: Re: build breaks w/ read-only sources
To: David Laight <david@l8s.co.uk>
From: Luke Mewburn <lukem@NetBSD.org>
List: current-users
Date: 10/31/2003 01:51:27
On Thu, Oct 30, 2003 at 02:49:12PM +0000, David Laight wrote:
| I've just dug deeper into this morass...
|
| Posix http://www.opengroup.org/onlinepubs/007904975/utilities/pwd.html
| requires that pwd (whether a shell builtin, or the command) default
| to 'pwd -L' and hence assume that $PWD is correct and that you can
| use ".." to travervse backwards over a symlink.
|
| This is contrary to historical practise for everything except ksh!
|
| The shell ought also support 'cd -L' and 'cd -P', the current 'cd'
| builtin is actually a hybrid of the two.
| Again the default is the ksh semantics.
|
| The shell could be made conformant by adding a 'set -o physical' option
| (as is done in pdksh).
Thanks for the background.
In any case, build.sh will be changed to unconditionally run
TOP=$(/bin/pwd -P)
Luke.