X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/6294d633e80db8e89697db796e6f6025d5af0cae..ad7871609881e73855d0b04da49b486cd93efca7:/usr/src/bin/ed/ed.1 diff --git a/usr/src/bin/ed/ed.1 b/usr/src/bin/ed/ed.1 index 88b0393a06..6882268ede 100644 --- a/usr/src/bin/ed/ed.1 +++ b/usr/src/bin/ed/ed.1 @@ -1,11 +1,13 @@ .\" Copyright (c) 1980, 1991 The Regents of the University of California. .\" All rights reserved. .\" -.\" %sccs.include.proprietary.man% +.\" This module is believed to contain source code proprietary to AT&T. +.\" Use and redistribution is subject to the Berkeley Software License +.\" Agreement and your Software Agreement with AT&T (Western Electric). .\" -.\" @(#)ed.1 6.8 (Berkeley) %G% +.\" @(#)ed.1 6.8 (Berkeley) 12/5/92 .\" -.Dd +.Dd December 5, 1992 .Dt ED 1 .Os ATT 7th .Sh NAME @@ -14,6 +16,7 @@ .Sh SYNOPSIS .Nm \&ed .Op Fl +.Op Fl \&x .Op Ar file .Sh DESCRIPTION .Nm \&Ed @@ -57,6 +60,13 @@ command (see below) on the named file; that is to say, the file is read into .Nm \&ed Ns 's buffer so that it can be edited. +.Pp +Available options: +.Bl -tag -width Ds +.It Fl \&x +An +.Cm \&x +command is simulated first to handle an encrypted file. .It Fl Suppresses the printing of explanatory output @@ -804,6 +814,17 @@ command is done, exiting the editor after the file is written. .Pp +.It \&x +A key string is demanded from the standard input. +Later +.Cm \&r , \&e +and +.Cm \&w +commands will encrypt and decrypt the text +with this key by the algorithm of +.Xr crypt 1 . +An explicitly empty key turns off encryption. +.Pp .It Xo .Po Ad \&.+1 .Pc Ns Cm \&z @@ -938,3 +959,13 @@ command mishandles The .Cm \&undo command causes marks to be lost on affected lines. +.br +The +.Cm \&x +command, +.Fl \&x +option, +and +special treatment of hangups +only work on +.Ux .