summaryrefslogtreecommitdiff
path: root/bin/ksh/sh.1
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2006-03-07 09:31:03 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2006-03-07 09:31:03 +0000
commitb15638af6a19626b33d2fdf46ffb49382f4afef8 (patch)
tree519c717e64a64d509dc83c33f64b0f25fca93cfa /bin/ksh/sh.1
parent4df4ccff07dfe642c4e1a7b5761520b294aeb8e5 (diff)
simplify the description of what a restricted shell is:
sh.1 does not need to talk about rksh; ksh.1 does not need to talk about rsh; also references to rpdksh are not really helpful; from tamas tevesz; ok jaredy
Diffstat (limited to 'bin/ksh/sh.1')
-rw-r--r--bin/ksh/sh.116
1 files changed, 7 insertions, 9 deletions
diff --git a/bin/ksh/sh.1 b/bin/ksh/sh.1
index 84dd3a22262..1a564aef7bd 100644
--- a/bin/ksh/sh.1
+++ b/bin/ksh/sh.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sh.1,v 1.71 2005/10/07 09:17:38 jmc Exp $
+.\" $OpenBSD: sh.1,v 1.72 2006/03/07 09:31:01 jmc Exp $
.\"
.\" Public Domain
.\"
@@ -88,15 +88,13 @@ Restricted shell.
A shell is
.Dq restricted
if this
-option is used or if either the basename the shell was invoked
-with or the
+option is used;
+if the basename the shell was invoked with was
+.Dq rsh ;
+or if the
.Ev SHELL
-parameter match the pattern
-.Dq *r*sh
-(e.g.\&
-.Nm rsh ,
-.Nm rksh ,
-.Nm rpdksh ) .
+parameter is set to
+.Dq rsh .
The following restrictions come into effect after the shell processes any
profile and
.Ev ENV