summaryrefslogtreecommitdiff
path: root/bin/ksh/ksh.1tbl
diff options
context:
space:
mode:
authorMarco S Hyman <marc@cvs.openbsd.org>1998-03-18 03:04:57 +0000
committerMarco S Hyman <marc@cvs.openbsd.org>1998-03-18 03:04:57 +0000
commit1fbaf22fad515849a3f6f74d7b65b561b328d766 (patch)
tree204ca865dacec2896b452df9cd01c61ee827708b /bin/ksh/ksh.1tbl
parent1d9b9a6f0ef4e89ea242b9e76258bdf472bc3024 (diff)
Document what sh/ksh does when the cd command matches a non empty path
in the CDPATH environment variable.
Diffstat (limited to 'bin/ksh/ksh.1tbl')
-rw-r--r--bin/ksh/ksh.1tbl16
1 files changed, 10 insertions, 6 deletions
diff --git a/bin/ksh/ksh.1tbl b/bin/ksh/ksh.1tbl
index 3124c11ba9b..3bfda6988f1 100644
--- a/bin/ksh/ksh.1tbl
+++ b/bin/ksh/ksh.1tbl
@@ -1,5 +1,5 @@
'\" t
-.\" $OpenBSD: ksh.1tbl,v 1.4 1998/01/17 18:53:46 millert Exp $
+.\" $OpenBSD: ksh.1tbl,v 1.5 1998/03/18 03:04:54 marc Exp $
.\"{{{}}}
.\"{{{ Notes about man page
.\" - use the pseudo-macros .sh( and .sh) to begin and end sh-specific
@@ -728,7 +728,9 @@ Search path for the \fBcd\fP built-in command. Works the same way as
\fBPATH\fP for those directories not beginning with \fB/\fP in \fBcd\fP
commands.
Note that if CDPATH is set and does not contain \fB.\fP nor an empty path,
-the current directory is not searched.
+the current directory is not searched. Also, the \fBcd\fP built-in command
+will display the resulting directory when a match is found in any search path
+other than the than the empty path.
.\"}}}
.\"{{{ COLUMNS
.IP \fBCOLUMNS\fP
@@ -1565,10 +1567,12 @@ Execute the built-in command \fIcommand\fP.
.\"{{{ cd [-LP] [dir]
.IP "\fBcd\fP [\fB\-LP\fP] [\fIdir\fP]"
Set the working directory to \fIdir\fP. If the parameter \fBCDPATH\fP
-is set, it lists the search path for the directory containing
-\fIdir\fP. A null path means the current directory. If \fIdir\fP is
-missing, the home directory \fB$HOME\fP is used. If \fIdir\fP is
-\fB\-\fP, the previous working directory is used (see OLDPWD parameter).
+is set, it lists the search path for the directory containing \fIdir\fP. A
+null path means the current directory. If \fIdir\fP is found in any
+component of the \fBCDPATH\fP search path other than the null path the name
+of the new working directory will be written to standard output. If
+\fIdir\fP is missing, the home directory \fB$HOME\fP is used. If \fIdir\fP
+is \fB\-\fP, the previous working directory is used (see OLDPWD parameter).
If \fB\-L\fP option (logical path) is used or if the \fBphysical\fP option
(see \fBset\fP command below) isn't set, references to \fB..\fP in \fIdir\fP
are relative to the path used get to the directory.