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:
Tim J. Robbins 2002-06-19 12:04:22 +00:00
parent 12e8db4067
commit 029c8ee4fa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98427

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