autoconf-patches
[Top][All Lists]
Advanced

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

Re: Problem with symlinks and VPATH Builds


From: Mark D. Roth
Subject: Re: Problem with symlinks and VPATH Builds
Date: Thu, 25 Jul 2002 08:25:39 -0500
User-agent: Mutt/1.2.5i

On Thu Jul 25 01:10 2002 -0700, Paul Eggert wrote:
> I don't see how that patch solves the problem in general.  It has
> a special case for $1 = ., and doesn't handle any other case.

Good point.


> I looked at the ksh source code, since I couldn't believe that it
> always has this problem.  I discovered that ksh's cd command has a -P
> option that causes it to behave in the traditional way.

Well, it's nice of the OS vendors to document this...  The -P option
isn't listed in the ksh docs under Solaris or AIX.  Only OpenBSD seems
to document this.


> I also looked at POSIX 1003.1-2001, and discovered that it _requires_
> the ksh93 behavior.
> 
> So it appears to me that the "proper" fix is to try "cd -P DIR" first,
> and to fall back on plain "cd DIR" if that doesn't work.

Sounds good.  Please see the attached patch.  If it looks good to you,
I'll commit it.

-- 
Mark D. Roth <address@hidden>
http://www.feep.net/~roth/

Attachment: autoconf-pwd-symlink-fix-3.diff
Description: Text document


reply via email to

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