From owner-freebsd-doc Sat Mar 16 14:40:12 2002 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7E78A37B41D for ; Sat, 16 Mar 2002 14:40:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2GMe3s78712; Sat, 16 Mar 2002 14:40:03 -0800 (PST) (envelope-from gnats) Date: Sat, 16 Mar 2002 14:40:03 -0800 (PST) Message-Id: <200203162240.g2GMe3s78712@freefall.freebsd.org> To: freebsd-doc@freebsd.org Cc: From: Giorgos Keramidas Subject: Re: docs/35940: red(1) manual doesn't explain red(1). Reply-To: Giorgos Keramidas Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR docs/35940; it has been noted by GNATS. From: Giorgos Keramidas To: "Gary W. Swearingen" Cc: bug-followup@freebsd.org Subject: Re: docs/35940: red(1) manual doesn't explain red(1). Date: Sat, 16 Mar 2002 18:28:37 +0200 On 2002-03-15 18:10, Gary W. Swearingen wrote: > > 'red' is the same as 'ed' except that it prohibits the use of > certain kinds of 'file' argument values, including those that > would cause 'ed' to execute a shell command and those that > contain a '/'. Consider it to be "restricted ed". How does this look? Mind you, the text was already there. I just uncommented it and made minor markup changes. Index: ed.1 =================================================================== RCS file: /home/ncvs/src/bin/ed/ed.1,v retrieving revision 1.29 diff -2 -u -r1.29 ed.1 --- ed.1 10 Aug 2001 17:35:07 -0000 1.29 +++ ed.1 16 Mar 2002 16:25:22 -0000 @@ -13,6 +13,4 @@ .Op Fl p Ar string .Op Ar file -.\" .LP -.\" red [-] [-sx] [-p \fIstring\fR] [\fIfile\fR] .Sh DESCRIPTION .Nm Ed @@ -20,9 +18,11 @@ It is used to create, display, modify and otherwise manipulate text files. -.\" .B red -.\" is a restricted -.\" .BR ed : -.\" it can only edit files in the current -.\" directory and cannot execute shell commands. +.Pp +If invoked as +.Nm red , +then +.Nm +can only edit files in the current directory +and cannot execute shell commands. .Pp If invoked with a Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message