summaryrefslogtreecommitdiffstats
path: root/bin/sh/sh.1
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-07-25 10:57:39 +0000
committertjr <tjr@FreeBSD.org>2002-07-25 10:57:39 +0000
commit43d6a146780d20450b3264783f6ddfba83217282 (patch)
tree133c1df05e4ec1eddcc3640d2f65f9eef939e399 /bin/sh/sh.1
parentca8e9f2edf22b507593fe9c0b5a2b8f9fad7d37e (diff)
downloadFreeBSD-src-43d6a146780d20450b3264783f6ddfba83217282.zip
FreeBSD-src-43d6a146780d20450b3264783f6ddfba83217282.tar.gz
Add a -P/-o physical option which behaves similarly to bash/ksh's options
by the same name. This option makes the cd and pwd builtins behave physically (as opposed to logically) by default. Submitted by: fanf
Diffstat (limited to 'bin/sh/sh.1')
-rw-r--r--bin/sh/sh.113
1 files changed, 12 insertions, 1 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1
index 38410d0..0bfd9b6 100644
--- a/bin/sh/sh.1
+++ b/bin/sh/sh.1
@@ -43,7 +43,7 @@
.Nd command interpreter (shell)
.Sh SYNOPSIS
.Nm
-.Op Fl /+abCEefIimnpsTuVvx
+.Op Fl /+abCEefIimnPpsTuVvx
.Op Fl /+o Ar longname
.Op Fl c Ar string
.Op Ar arg ...
@@ -225,6 +225,17 @@ Turn on job control (set automatically when interactive).
If not interactive, read commands but do not
execute them. This is useful for checking the
syntax of shell scripts.
+.It Fl P Li physical
+Change the default for the
+.Ic cd
+and
+.Ic pwd
+commands from
+.Fl L
+(logical directory layout)
+to
+.Fl P
+(physical directory layout).
.It Fl p Li privileged
Turn on privileged mode. This mode is enabled on startup
if either the effective user or group id is not equal to the
OpenPOWER on IntegriCloud