summaryrefslogtreecommitdiffstats
path: root/bin/ed/ed.1
diff options
context:
space:
mode:
authoralm <alm@FreeBSD.org>1993-06-26 06:47:21 +0000
committeralm <alm@FreeBSD.org>1993-06-26 06:47:21 +0000
commit3ee56e1af8d1034ab3f1f81bb3bca6e2e88bd8d8 (patch)
treea75d2f4512b2836bcc2e21f718151792e640b67f /bin/ed/ed.1
parentc1b03d1c9c4a42a7c8acab252f2fd926b376b882 (diff)
downloadFreeBSD-src-3ee56e1af8d1034ab3f1f81bb3bca6e2e88bd8d8.zip
FreeBSD-src-3ee56e1af8d1034ab3f1f81bb3bca6e2e88bd8d8.tar.gz
fixed undo within a global command (would corrupt the buffer)
changed move within a global to behave as in SunOS added a couple error messages
Diffstat (limited to 'bin/ed/ed.1')
-rw-r--r--bin/ed/ed.130
1 files changed, 17 insertions, 13 deletions
diff --git a/bin/ed/ed.1 b/bin/ed/ed.1
index ff6a849..e9a3180 100644
--- a/bin/ed/ed.1
+++ b/bin/ed/ed.1
@@ -92,9 +92,9 @@ commands have the structure:
.I [address [,address]]command[parameters]
.RE
.sp
-The address(es) indicate the line(s) to be affected by the command.
-If fewer addresses are given than the command accepts, then default
-addresses are supplied.
+The address(es) indicate the line or range of lines to be affected by the
+command. If fewer addresses are given than the command accepts, then
+default addresses are supplied.
.SS OPTIONS
.TP 8
@@ -311,7 +311,7 @@ not listed below, including `{', '}', `(', `)', `<' and `>',
matches itself.
.TP 8
-\fR\\\fIc\fR
+\fR\e\fIc\fR
Any backslash-escaped character
.IR c ,
except for `{', '}', `(', `)', `<' and `>',
@@ -389,28 +389,28 @@ anchors the regular expression to the end of a line.
Otherwise, it matches itself.
.TP 8
-\fR\\<\fR
+\fR\e<\fR
Anchors the single character regular expression or subexpression
immediately following it to the beginning of a word.
(This may not be available)
.TP 8
-\fR\\>\fR
+\fR\e>\fR
Anchors the single character regular expression or subexpression
immediately following it to the end of a word.
(This may not be available)
.TP 8
-\fR\\(\fIre\fR\\)\fR
+\fR\e(\fIre\fR\e)\fR
Defines a subexpression
.IR re .
Subexpressions may be nested.
-A subsequent backreference of the form \fI`\\n'\fR, where
+A subsequent backreference of the form \fI`\en'\fR, where
.I n
is a number in the range [1,9], expands to the text matched by the
.IR n th
subexpression.
-For example, the regular expression `\\(.*\\)\\1' matches any string
+For example, the regular expression `\e(.*\e)\e1' matches any string
consisting of identical adjacent substrings.
Subexpressions are ordered relative to
their left delimiter.
@@ -426,7 +426,7 @@ the string `abbb' (as opposed to the substring `bbb'), since a null match
is the only left-most match.
.TP 8
-\fR\\{\fIn,m\fR\\}\fR or \fR\\{\fIn,\fR\\}\fR or \fR\\{\fIn\fR\\}\fR
+\fR\e{\fIn,m\fR\e}\fR or \fR\e{\fIn,\fR\e}\fR or \fR\e{\fIn\fR\e}\fR
Matches the single character regular expression or subexpression
immediately preceding it at least
.I n
@@ -735,7 +735,7 @@ An unescaped `&' in
.I replacement
is replaced by the currently matched text.
The character sequence
-\fI`\\m'\fR,
+\fI`\em'\fR,
where
.I m
is a number in the range [1,9], is replaced by the
@@ -912,8 +912,8 @@ that line.
Buffer file
.PD 0
.TP 20
-\fR./ed.hup\fR, $HOME/ed.hup
-First and second files to which
+ed.hup
+The file to which
.B ed
attempts to write the buffer if the terminal hangs up.
@@ -971,6 +971,10 @@ replaces any occurrences of
.I old
with
.IR new .
+If the
+.I `u'
+(undo) command occurs in a global command list, then
+the command list is executed only once.
If diagnostics are not disabled, attempting to quit
.B ed
OpenPOWER on IntegriCloud