sh: Correct criterion for using CDPATH in cd.
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 21 Aug 2011 19:46:44 +0000 (12:46 -0700)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 21 Aug 2011 20:49:16 +0000 (13:49 -0700)
commitdb98aac00aa4b78e8811da43a1a6366f4feff158
tree20b913e29bd0e30923b4f18912852cb2449b3252
parent88ce2c2d5734269b65120fc42a10d07068a5b3a1
sh: Correct criterion for using CDPATH in cd.

CDPATH should be ignored not only for pathnames starting with '/' but
also for pathnames whose first component is '.' or '..'.

Obtained-from:   FreeBSD 222381
bin/sh/cd.c
tools/regression/bin/sh/builtins/cd6.0 [new file with mode: 0644]
tools/regression/bin/sh/builtins/cd7.0 [new file with mode: 0644]