Document the -L and -P options to the cd and pwd commands as being

mutually exclusive. The fact that the most recent one specified on the
command line is the one that takes effect is an implementation detail and
users should not rely on this.
This commit is contained in:
Tim J. Robbins 2003-04-12 03:20:28 +00:00
parent f9b89f7e3e
commit e9fa8fddd6

View File

@ -35,7 +35,7 @@
.\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95
.\" $FreeBSD$
.\"
.Dd May 5, 1995
.Dd April 12, 2003
.Dt SH 1
.Os
.Sh NAME
@ -1296,7 +1296,7 @@ with the same name as a built-in command.
List or alter key bindings for the line editor.
This command is documented in
.Xr editrc 5 .
.It Ic cd Oo Fl LP Oc Op Ar directory
.It Ic cd Oo Fl L | Fl P Oc Op Ar directory
Switch to the specified
.Ar directory ,
or to the directory specified in the
@ -1627,7 +1627,7 @@ option is specified, the PID of each job is also printed.
If the
.Fl s
option is specified, only the PIDs of the jobs are printed, one per line.
.It Ic pwd Op Fl LP
.It Ic pwd Oo Fl L | Fl P Oc
Print the path of the current directory. The built-in command may
differ from the program of the same name because the
built-in command remembers what the current directory