> From: "Mark D. Roth" <[EMAIL PROTECTED]> > Date: Wed, 24 Jul 2002 19:57:35 -0500 > > Please look over the attached patch and let me know what you think.
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. 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. 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.