According to Eric Blake on 7/14/2009 3:39 PM:
For the cd command, POSIX 2008 requires that after all pathnames in CDPATH
have
been tested and failed in step 5, then step 6 interprets the directory
argument
relative to PWD. In other words, this demonstrates a bug:
$ dash -c 'cd /tmp;
On Tue, Jul 14, 2009 at 09:39:03PM +, Eric Blake wrote:
For the cd command, POSIX 2008 requires that after all pathnames in CDPATH
have
been tested and failed in step 5, then step 6 interprets the directory
argument
relative to PWD. In other words, this demonstrates a bug:
$ dash