Prepare for mdoc(7)NG.
This commit is contained in:
parent
e0913a2c44
commit
12e720d78b
@ -90,7 +90,7 @@ Control characters print as
|
||||
.Ql ^X
|
||||
for control-X; the delete
|
||||
character (octal 0177) prints as
|
||||
.Ql ^?
|
||||
.Ql ^? .
|
||||
.Pf Non- Tn ASCII
|
||||
characters (with the high bit set) are printed as
|
||||
.Ql M-
|
||||
|
@ -49,15 +49,25 @@
|
||||
.Op Fl t Ar minutes_west
|
||||
.Oo
|
||||
.Fl v
|
||||
.Op +|- Ns
|
||||
.No val Ns Op ymwdHMS
|
||||
.Oc Ns ...
|
||||
.Oo Fl f No " "
|
||||
.Ar fmt date No |
|
||||
.Oo Oo Oo Oo Oo "\&cc" Ns
|
||||
.Oc "\&yy" Oc "\&mm" Oc "\&dd" Oc "\&HH" Ns
|
||||
.Sm off
|
||||
.Op Cm + | - Xo
|
||||
.Ar val Op Ar ymwdHMS
|
||||
.Xc
|
||||
.Sm on
|
||||
.Oc
|
||||
.No "\&MM" Ns Op "\&.ss"
|
||||
.Ar ...
|
||||
.Oo
|
||||
.Fl f
|
||||
.Ar fmt date |
|
||||
.Sm off
|
||||
.Oo Oo Oo Oo Oo
|
||||
.Ar cc Oc
|
||||
.Ar yy Oc
|
||||
.Ar mm Oc
|
||||
.Ar dd Oc
|
||||
.Ar HH Oc
|
||||
.Ar MM Op Ar .ss
|
||||
.Sm on
|
||||
.Oc
|
||||
.Op Cm + Ns Ar format
|
||||
.Sh DESCRIPTION
|
||||
@ -84,14 +94,18 @@ will return a non-zero for
|
||||
.It Fl f
|
||||
Use
|
||||
.Ar fmt
|
||||
as the format string to parse the date provided rather than using
|
||||
the default
|
||||
.\" .Ar [[[[[cc]yy]mm]dd]HH]MM[.ss]
|
||||
.Xo
|
||||
.Oo Oo Oo Oo Oo "\&cc" Ns
|
||||
.Oc "\&yy" Oc "\&mm" Oc "\&dd" Oc "\&HH" Ns
|
||||
.Oc
|
||||
.No "\&MM" Ns Op "\&.ss" Xc
|
||||
as the format string to parse the
|
||||
.Ar date
|
||||
provided rather than using the default
|
||||
.Sm off
|
||||
.Oo Oo Oo Oo Oo
|
||||
.Ar cc Oc
|
||||
.Ar yy Oc
|
||||
.Ar mm Oc
|
||||
.Ar dd Oc
|
||||
.Ar HH
|
||||
.Oc Ar MM Op Ar .ss
|
||||
.Sm on
|
||||
format.
|
||||
Parsing is done using
|
||||
.Xr strptime 3 .
|
||||
|
25
bin/ed/ed.1
25
bin/ed/ed.1
@ -25,7 +25,7 @@ files.
|
||||
.\" .BR ed :
|
||||
.\" it can only edit files in the current
|
||||
.\" directory and cannot execute shell commands.
|
||||
|
||||
.Pp
|
||||
If invoked with a
|
||||
.Ar file
|
||||
argument, then a copy of
|
||||
@ -39,7 +39,7 @@ Upon quitting
|
||||
any changes not explicitly saved with a
|
||||
.Em w
|
||||
command are lost.
|
||||
|
||||
.Pp
|
||||
Editing is done in two distinct modes:
|
||||
.Em command
|
||||
and
|
||||
@ -81,7 +81,7 @@ including a
|
||||
character.
|
||||
Input mode is terminated by
|
||||
entering a single period
|
||||
.Pf ( Em . Ns )
|
||||
.Pq Em .\&
|
||||
on a line.
|
||||
.Pp
|
||||
All
|
||||
@ -427,7 +427,7 @@ commands are single characters, though some require additional parameters.
|
||||
If a command's parameters extend over several lines, then
|
||||
each line except for the last
|
||||
must be terminated with a backslash (\\).
|
||||
|
||||
.Pp
|
||||
In general, at most one command is allowed per line.
|
||||
However, most commands accept a print suffix, which is any of
|
||||
.Em p
|
||||
@ -438,10 +438,10 @@ or
|
||||
.Em n
|
||||
(enumerate),
|
||||
to print the last line affected by the command.
|
||||
|
||||
.Pp
|
||||
An interrupt (typically ^C) has the effect of aborting the current command
|
||||
and returning the editor to command mode.
|
||||
|
||||
.Pp
|
||||
.Nm Ed
|
||||
recognizes the following commands. The commands are shown together with
|
||||
the default address or address range supplied if none is
|
||||
@ -835,9 +835,8 @@ attempts to write the buffer if the terminal hangs up
|
||||
.Xr sh 1 ,
|
||||
.Xr vi 1 ,
|
||||
.Xr regex 3
|
||||
|
||||
.Pp
|
||||
USD:12-13
|
||||
|
||||
.Rs
|
||||
.%A B. W. Kernighan
|
||||
.%A P. J. Plauger
|
||||
@ -845,7 +844,6 @@ USD:12-13
|
||||
.%O Addison-Wesley
|
||||
.%D 1981
|
||||
.Re
|
||||
|
||||
.Sh LIMITATIONS
|
||||
.Nm Ed
|
||||
processes
|
||||
@ -853,16 +851,15 @@ processes
|
||||
arguments for backslash escapes, i.e., in a filename,
|
||||
any characters preceded by a backslash (\\) are
|
||||
interpreted literally.
|
||||
|
||||
.Pp
|
||||
If a text (non-binary) file is not terminated by a newline character,
|
||||
then
|
||||
.Nm
|
||||
appends one on reading/writing it. In the case of a binary file,
|
||||
.Nm
|
||||
does not append a newline on reading/writing.
|
||||
|
||||
.Pp
|
||||
per line overhead: 4 ints
|
||||
|
||||
.Sh DIAGNOSTICS
|
||||
When an error occurs,
|
||||
.Nm
|
||||
@ -872,7 +869,7 @@ An explanation of the last error can be
|
||||
printed with the
|
||||
.Em h
|
||||
(help) command.
|
||||
|
||||
.Pp
|
||||
Since the
|
||||
.Em g
|
||||
(global) command masks any errors from failed searches and substitutions,
|
||||
@ -894,7 +891,7 @@ If the
|
||||
.Em u
|
||||
(undo) command occurs in a global command list, then
|
||||
the command list is executed only once.
|
||||
|
||||
.Pp
|
||||
If diagnostics are not disabled, attempting to quit
|
||||
.Nm
|
||||
or edit another file before writing a modified buffer
|
||||
|
@ -77,7 +77,7 @@ Return the results of addition or subtraction of integer-valued arguments.
|
||||
Return the results of multiplication, integer division, or remainder of integer-valued arguments.
|
||||
.It Ar expr1 Li : Ar expr2
|
||||
The
|
||||
.Dq \:
|
||||
.Dq \&:
|
||||
operator matches
|
||||
.Ar expr1
|
||||
against
|
||||
|
@ -102,7 +102,7 @@ For example, if there were a symbolic link
|
||||
which pointed to a file named
|
||||
.Dq Li afile ,
|
||||
the system call
|
||||
.Dq Li open("slink" ...)
|
||||
.Dq Li open("slink" ...\&)
|
||||
would return a file descriptor to the file
|
||||
.Dq afile .
|
||||
.Pp
|
||||
|
@ -72,9 +72,9 @@ The following options are available:
|
||||
.Bl -tag -width indent
|
||||
.It Fl A
|
||||
List all entries except for
|
||||
.Ql \&.
|
||||
.Ql .\&
|
||||
and
|
||||
.Ql \&.. .
|
||||
.Ql .. .
|
||||
Always set for the super-user.
|
||||
.It Fl B
|
||||
Force printing of non-graphic characters in file names as \\xxx,
|
||||
|
@ -47,8 +47,9 @@
|
||||
.Op Fl o Ar fmt
|
||||
.Op Fl p Ar pid
|
||||
.Op Fl t Ar tty
|
||||
.Oo Fl U Ar username Ns
|
||||
.Oo Fl U Ar username Ns Xo
|
||||
.Op , Ns Ar username Ns No ...
|
||||
.Xc
|
||||
.Oc
|
||||
.Op Fl W Ar swap
|
||||
.Nm
|
||||
@ -226,7 +227,7 @@ The name of the
|
||||
.Xr mutex 9
|
||||
that the process is currently blocked on.
|
||||
If the name is invalid or unknown, then
|
||||
.Dq ???
|
||||
.Dq ???\&
|
||||
is displayed.
|
||||
.It nice
|
||||
The process scheduling increment (see
|
||||
|
@ -115,7 +115,7 @@ The
|
||||
utility removes symbolic links, not the files referenced by the links.
|
||||
.Pp
|
||||
It is an error to attempt to remove the files
|
||||
.Dq \&.
|
||||
.Dq .\&
|
||||
or
|
||||
.Dq .. .
|
||||
.Pp
|
||||
|
@ -674,7 +674,7 @@ to the standard input of
|
||||
.Ql command2 .
|
||||
.Pp
|
||||
A
|
||||
.Dq Li \;
|
||||
.Dq Li \&;
|
||||
or newline terminator causes the preceding
|
||||
AND-OR-list
|
||||
(described below in the section called
|
||||
@ -1260,7 +1260,7 @@ The character class may be complemented by making an exclamation point
|
||||
the first character of the character class.
|
||||
.Pp
|
||||
To include a
|
||||
.Dq Li \]
|
||||
.Dq Li \&]
|
||||
in a character class, make it the first character listed
|
||||
(after the
|
||||
.Dq Li ! ,
|
||||
|
@ -64,7 +64,7 @@ The
|
||||
command will accept and honor a non-integer number of specified seconds
|
||||
.Po
|
||||
with a
|
||||
.Ql \&.
|
||||
.Ql .\&
|
||||
character as a decimal point
|
||||
.Pc .
|
||||
.Bf Sy
|
||||
|
@ -368,24 +368,24 @@ Recognized control-characters:
|
||||
.Bd -ragged -offset indent
|
||||
.Bl -column character Subscript
|
||||
.It control-
|
||||
.It character Subscript Description
|
||||
.It _________ _________ _______________
|
||||
.It eof Ta Tn VEOF EOF No character
|
||||
.It eol Ta Tn VEOL EOL No character
|
||||
.It eol2 Ta Tn VEOL2 EOL2 No character
|
||||
.It erase Ta Tn VERASE ERASE No character
|
||||
.It erase2 Ta Tn VERASE2 ERASE2 No character
|
||||
.It werase Ta Tn VWERASE WERASE No character
|
||||
.It intr Ta Tn VINTR INTR No character
|
||||
.It kill Ta Tn VKILL KILL No character
|
||||
.It quit Ta Tn VQUIT QUIT No character
|
||||
.It susp Ta Tn VSUSP SUSP No character
|
||||
.It start Ta Tn VSTART START No character
|
||||
.It stop Ta Tn VSTOP STOP No character
|
||||
.It dsusp Ta Tn VDSUSP DSUSP No character
|
||||
.It lnext Ta Tn VLNEXT LNEXT No character
|
||||
.It reprint Ta Tn VREPRINT REPRINT No character
|
||||
.It status Ta Tn VSTATUS STATUS No character
|
||||
.It character Ta Subscript Ta Description
|
||||
.It _________ Ta _________ Ta _______________
|
||||
.It eof Ta Tn VEOF Ta EOF No character
|
||||
.It eol Ta Tn VEOL Ta EOL No character
|
||||
.It eol2 Ta Tn VEOL2 Ta EOL2 No character
|
||||
.It erase Ta Tn VERASE Ta ERASE No character
|
||||
.It erase2 Ta Tn VERASE2 Ta ERASE2 No character
|
||||
.It werase Ta Tn VWERASE Ta WERASE No character
|
||||
.It intr Ta Tn VINTR Ta INTR No character
|
||||
.It kill Ta Tn VKILL Ta KILL No character
|
||||
.It quit Ta Tn VQUIT Ta QUIT No character
|
||||
.It susp Ta Tn VSUSP Ta SUSP No character
|
||||
.It start Ta Tn VSTART Ta START No character
|
||||
.It stop Ta Tn VSTOP Ta STOP No character
|
||||
.It dsusp Ta Tn VDSUSP Ta DSUSP No character
|
||||
.It lnext Ta Tn VLNEXT Ta LNEXT No character
|
||||
.It reprint Ta Tn VREPRINT Ta REPRINT No character
|
||||
.It status Ta Tn VSTATUS Ta STATUS No character
|
||||
.El
|
||||
.Ed
|
||||
.It Cm min Ar number
|
||||
|
Loading…
Reference in New Issue
Block a user