summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-07-28 22:01:41 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-07-28 22:01:41 +0000
commit7b409db1a4f5484433eb82123219aab0c3e29c1c (patch)
tree1d77e00658bdbb11b40189bce223d4dd8399c8d5 /share
parentea8d0cf8049671213ffc3f0b1ff646a913f62e2d (diff)
attempt to describe CDPATH a little better. note that csh uses cdpath
instead. ok input jmc@
Diffstat (limited to 'share')
-rw-r--r--share/man/man1/cd.113
1 files changed, 11 insertions, 2 deletions
diff --git a/share/man/man1/cd.1 b/share/man/man1/cd.1
index dd91467c9c2..d99d2d6fa40 100644
--- a/share/man/man1/cd.1
+++ b/share/man/man1/cd.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: cd.1,v 1.10 2003/06/02 23:30:12 millert Exp $
+.\" $OpenBSD: cd.1,v 1.11 2003/07/28 22:01:40 tedu Exp $
.\" $NetBSD: cd.1,v 1.2 1994/11/30 08:34:59 jtc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
@@ -81,7 +81,8 @@ character, and the first component is not dot
or dot-dot
.Pq Ql \&.\&. ,
.Nm
-searches for the directory relative to each directory named in the
+searches for the directory relative to each colon-separated directory named
+in the
.Ev CDPATH
variable, in the order listed.
The new working directory is set to the first matching directory found.
@@ -90,6 +91,14 @@ directory.
If the new working directory was derived from
.Ev CDPATH ,
it will be printed to the standard output.
+See
+.Xr sh 1
+for details.
+Users of
+.Xr csh 1
+use the variable
+.Ev cdpath
+instead.
.It Ev HOME
If
.Nm