Bring documentation on CDPATH and its effects on cd(1) back into sync with

reality (and POSIX): current directory isn't searched unless CDPATH has
a "." element or is unset.

PR:		38442
Submitted by:	oleg dashevskii <be9@be9.ru>
MFC after:	1 week
This commit is contained in:
tjr 2002-06-19 12:04:22 +00:00
parent aff5678b6e
commit 6b197bb764

View File

@ -1289,16 +1289,18 @@ environment variable if no
is specified.
If
.Ar directory
is not found as a subdirectory of the current directory
(and does not begin with
.Pa / , ./ ,
does not begin with
.Pa / , . ,
or
.Pa ../ ) ,
.Pa .. ,
then the directories listed in the
.Ev CDPATH
variable will be
searched for the specified
.Ar directory .
If
.Ev CDPATH
is unset, the current directory is searched.
The format of
.Ar CDPATH
is the same as that of