History log of /openbsd-current/bin/ed/ed.1
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.77 19-Jun-2022 jmc

grammar fix; from S M


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.76 08-Mar-2021 jsg

Add some references, most of these were removed when we stopped building
and installing USD/SMM/PSD docs.

jmc@ agrees with the direction, ok millert@ on an earlier diff


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.75 30-Jul-2019 schwarze

In addresses, consistently use "+" rather than ".+1".
Both have the same meaning, but the former is explicitly defined
in this manual page as "the next line" whereas the latter requires
combining various pieces of information for understanding.
Unification suggested and patch OK'ed by martijn@.


# 1.74 20-Jul-2019 schwarze

1. Correct the description of the g command to match POSIX and our
implementation; it was oversimplified and arguably incorrect.
2. Explicitely compare the behaviour of empty command lists for g,
empty command lists for G, and empty commands because these subtle
differences are quite confusing.
3. Say more precisely what the v and V commands do, avoiding the
fuzzy wording "similar".
All these issues were first pointed out by martijn@.
Feedback and OK martijn@; "diff reads ok" jmc@ on an earlier version.


# 1.73 15-Jul-2019 schwarze

Explain in which circumstances trailing slashes can be omitted after
the g and G commands, and polish the wording a bit explaining empty
command lists.
Closing a gap in the manual reported by <mazocomp at disroot dot org>.
OK jmc@ martijn@


# 1.72 12-Jul-2019 schwarze

Minor polishing:
* Delete a stray blank from the command line synopsis
and add the missing .Ar markup to it.
* Do not mention the terminating newline for the empty command
since it isn't mentioned for any other command either.
* Make the description of the empty command easier to understand.
Joint work with martijn@ and jmc@.


# 1.71 10-Jul-2019 jmc

document the dropping of the second / and ? in line address REs;
thread started by mazocomp; diff from ropers, shortened by me;

ok martijn schwarze


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.70 26-Apr-2018 martijn

Make ed's 'l' command end lines with a '$' and make sure that literal
'$' characters are escaped, so that we are POSIX compliant.

The omission of trailing '$' was originally hidden behind a BACKWARDS
flag. This flag was most likely introduced to be compatible with 4.4BSD.
Thanks to naddy@ for pointing me to the 4.4BSD ed implementation.

I tried to trace the origin and enabling of the BACKWARDS flag, since
both FreeBSD and NetBSD have the flag, but only FreeBSD doesn't have it
enabled. Both projects had an alm@ working on ed during 1993-1995 during
which he added this flag to both projects and only enabled it on NetBSD,
but I wasn't able to reach him on any known address.
Thanks to Ed Schouten (ed@freebsd), and Michael W. Lucas of the ed
Mastery book for helping me trying to locate Andrew Moore.

Problem originally prodded by garzon.lucero@gmail.com and later
independently re-requested by n.reusse@hxgn.net.

OK tb@, guenther@, and mwl@mwl.io


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.69 05-Jul-2017 schwarze

nits about trailing punctuation found with mandoc -Tlint


Revision tags: OPENBSD_6_1_BASE
# 1.68 23-Sep-2016 jmc

remove the note about the list command (l) displaying a --More--
prompt for huge lines (according to otto this happens only when
BACKWARDS is not defined);

ok otto


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.67 20-Nov-2015 tb

honestly i think you should just zap that paragraph - it doesn;t make
sense to document that posix more or less says something should happen,
and that it does.

jmc


# 1.66 20-Nov-2015 tb

make ed restore the user defined prompt (specified with -p) when it was turned
off and then on again with 'P'.

ok daniel@


# 1.65 14-Sep-2015 schwarze

Avoid .Ns right after .Pf, it's pointless.
In some cases, do additional cleanup in the immediate vicinity.


Revision tags: OPENBSD_5_8_BASE
# 1.64 22-Jun-2015 jmc

theo buehler points out that posix specifies a prompt defined using -p
be reinstated when toggled off then on again; this seems to make sense,
but posix is not explicit.

we know that gnu ed and freebsd do reinstate the user defined prompt, but
we do not. no one has yet stepped up to change this, so i'm adding a note
to this effect until such a time as we do/

i have not tweaked the text for -p or "P" to allow for an easy back out
if behaviour does change;


Revision tags: OPENBSD_5_7_BASE
# 1.63 04-Dec-2014 daniel

document some more commands that are POSIX extensions. ok jmc@


# 1.62 26-Nov-2014 jmc

document in STANDARDS that we do not mark eols with $;
originally reported by ezequiel garz?n


Revision tags: OPENBSD_5_6_BASE
# 1.61 14-Apr-2014 jmc

more x removal;


# 1.60 14-Apr-2014 tedu

remove nonstandard DES support because DES. ok beck deraadt miod


# 1.59 06-Mar-2014 jmc

add an ASYNCHRONOUS EVENTS section for signals, as per vi;
ok millert


Revision tags: OPENBSD_5_5_BASE
# 1.58 22-Feb-2014 jmc

STANDARDS:
- `%' is an extension
- `^' is neither required nor prohibited by posix
- the deprecated `-' option is "behaviour unspecified"

ok millert


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.57 03-Sep-2010 jmc

add an EXIT STATUS section for /bin;


Revision tags: OPENBSD_4_8_BASE
# 1.56 27-Jul-2010 jmc

properly escape some "!"; reported by kristaps


# 1.55 22-Jul-2010 jmc

move exit returns blurb out of DIAGNOSTICS; from daniel dickman


Revision tags: OPENBSD_4_7_BASE
# 1.54 10-Jan-2010 jmc

remove references to docs we no longer install;


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.53 08-Feb-2009 jmc

bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few
updates to follow;


# 1.52 01-Oct-2008 jmc

for the `g' and `G' commands, document that if no lines match
the regular expression then the current line number remains unchanged;


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.51 31-May-2007 jmc

convert to new .Dd format;


# 1.50 29-May-2007 jmc

- consistent STANDARDS blurb
- note which options are extensions to POSIX

discussed w/ deraadt otto millert


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.49 04-Oct-2004 jmc

remove the section on regular expressions - instead point people
to re_format.7 (which is where the list of BREs went);

also, rename LIMITATIONS to CAVEATS, as this is a standard mdoc thing,
and shuffle it to the end of the page;


Revision tags: OPENBSD_3_6_BASE
# 1.48 19-Apr-2004 jmc

correct path to usd docs;


Revision tags: OPENBSD_3_5_BASE
# 1.47 12-Feb-2004 jmc

some typos and macro simplification;


# 1.46 31-Jan-2004 jmc

make references to USD docs clearer;


# 1.45 13-Dec-2003 jmc

sort options, and adjust -width of options' list;


# 1.44 25-Sep-2003 jmc

replace .Em with more appropriate macros. some other cleanup;


Revision tags: OPENBSD_3_4_BASE
# 1.43 02-Sep-2003 jmc

escape punctuation;
ok deraadt@


# 1.42 27-Jul-2003 jmc

USD docs for ed are 9-10, not 12,13;


# 1.41 29-May-2003 jmc

- section reorder
- correct macro
- escape some whitespace


# 1.40 28-Apr-2003 jmc

typos;

suggestions, corrections and ok millert@


Revision tags: OPENBSD_3_3_BASE
# 1.39 18-Feb-2003 jmc

copyrights added;

ed(1): Andrew Moore
patch(1): Larry Wall (thanks espie@ for help with this one)
units(1): Adrian Mariano


# 1.38 04-Oct-2002 deraadt

wrong word; cjeker@diehard.n-r-g.com


Revision tags: OPENBSD_3_2_BASE
# 1.37 31-Aug-2002 mpech

Unbreak. We have situations where last space in the line is required.
From dfa@openbsd.ru


Revision tags: OPENBSD_3_1_BASE
# 1.36 17-Feb-2002 millert

Mention deprecated '-' flag (same as -s) since it is listed in the
SYNOPSIS.


# 1.35 21-Dec-2001 mpech

Initial patch for a new mdoc issue.
Powered by @mantoya:
o) kill extra line in the end of file;
o) kill extra space in the end of line;
o) replace blank lines with .Pp;

millert@ ok


# 1.34 13-Nov-2001 mpech

o) start new sentence on a new line;
o) don't use .Pp before/after .Ss;
o) wrap long lines;
o) fix bogus .Xr usage;

millert@ ok;


Revision tags: OPENBSD_3_0_BASE
# 1.33 20-Jul-2001 mpech

we don't like:
o) .Pp before/after .Sh;
o) .Pp before/after .Rs/.Re;
o) .Nm without argument in SYNOPSIS;


# 1.32 23-Jun-2001 deraadt

ok, tmac is now fixed


# 1.31 23-Jun-2001 deraadt

join .%A entries; most by bk@rt.fm


# 1.30 28-May-2001 aaron

Various fixes; mpech@prosoft.org.lv


Revision tags: OPENBSD_2_9_BASE
# 1.29 09-Nov-2000 aaron

- Some section shuffling: conform to the standard order documented in mdoc(7)
- .Sh AUTHOR -> .Sh AUTHORS


# 1.28 09-Nov-2000 aaron

Insert some missing commas.


Revision tags: OPENBSD_2_8_BASE
# 1.27 06-Oct-2000 aaron

- Get rid of more short lines.
- Fix a formatting error I missed in the last commit.


# 1.26 06-Oct-2000 aaron

- Fix numerous formatting glitches.
- Convert plain reference to an mdoc macro'd reference.
- Get rid of some annoying short lines, which make the man src hard to read.
- parenthesis -> parentheses


Revision tags: OPENBSD_2_7_BASE
# 1.25 23-Apr-2000 aaron

Some fixups.


# 1.24 21-Apr-2000 aaron

Don't hyphenate the words {left|right}most.


# 1.23 15-Apr-2000 aaron

Mostly punctuation fixes.


# 1.22 21-Mar-2000 aaron

Add HISTORY sections; from FreeBSD. Information originally obtained from
"A Quarter Centry of UNIX, Peter H. Salus, Page 41".


# 1.21 17-Mar-2000 aaron

Remove hard sentence breaks.


Revision tags: OPENBSD_2_6_BASE
# 1.20 04-Jul-1999 aaron

trash some old leftover macros and replace them with -mdoc macros


# 1.19 04-Jun-1999 aaron

start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@


# 1.18 23-May-1999 aaron

remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com


Revision tags: OPENBSD_2_5_BASE
# 1.17 01-Mar-1999 aaron

fix a command sequence description; d@, also some misc cleanup


# 1.16 15-Dec-1998 aaron

always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.net


# 1.15 28-Nov-1998 aaron

start killing redundant .Nm macro arguments (mandoc ``remembers'' the first one
it's given)


# 1.14 06-Nov-1998 aaron

use .Dq/.Sq macros instead of `` ''s and ` 's (think typesetting and future
processing); kill redundant .Pp macros; other misc fixes


Revision tags: OPENBSD_2_4_BASE
# 1.13 23-Sep-1998 aaron

alphabetize SEE ALSO entries and numerically order according to section


# 1.12 14-Sep-1998 aaron

First complete sweep of man pages, bin/. Command/function names previously
(incorrectly) capatilized are fixed. Comma splices, hyphenations, SYNOPSIS
cleanups, other miscellaneous typos.


# 1.11 01-Sep-1998 deraadt

more man page fixes; aaron@ug.cs.dal.ca


# 1.10 21-Jul-1998 deraadt

fix +n description; jkoshy@freebsd


Revision tags: OPENBSD_2_3_BASE
# 1.9 02-Jan-1998 deraadt

man page error; helbig


Revision tags: OPENBSD_2_2_BASE
# 1.8 30-Aug-1997 deraadt

minor errors; josh@quick.net


# 1.7 04-Aug-1997 deraadt

bad Ns


# 1.6 04-Aug-1997 deraadt

more Ns


# 1.5 03-Aug-1997 deraadt

oops. ok, why does my footer not show up yet??


# 1.4 03-Aug-1997 deraadt

roughly 3 hours of slaving results in a much more beautiful mdoc man page.


Revision tags: OPENBSD_2_1_BASE
# 1.3 10-Dec-1996 deraadt

"the the" purge


Revision tags: OPENBSD_2_0_BASE
# 1.2 23-Jun-1996 deraadt

update rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.76 08-Mar-2021 jsg

Add some references, most of these were removed when we stopped building
and installing USD/SMM/PSD docs.

jmc@ agrees with the direction, ok millert@ on an earlier diff


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.75 30-Jul-2019 schwarze

In addresses, consistently use "+" rather than ".+1".
Both have the same meaning, but the former is explicitly defined
in this manual page as "the next line" whereas the latter requires
combining various pieces of information for understanding.
Unification suggested and patch OK'ed by martijn@.


# 1.74 20-Jul-2019 schwarze

1. Correct the description of the g command to match POSIX and our
implementation; it was oversimplified and arguably incorrect.
2. Explicitely compare the behaviour of empty command lists for g,
empty command lists for G, and empty commands because these subtle
differences are quite confusing.
3. Say more precisely what the v and V commands do, avoiding the
fuzzy wording "similar".
All these issues were first pointed out by martijn@.
Feedback and OK martijn@; "diff reads ok" jmc@ on an earlier version.


# 1.73 15-Jul-2019 schwarze

Explain in which circumstances trailing slashes can be omitted after
the g and G commands, and polish the wording a bit explaining empty
command lists.
Closing a gap in the manual reported by <mazocomp at disroot dot org>.
OK jmc@ martijn@


# 1.72 12-Jul-2019 schwarze

Minor polishing:
* Delete a stray blank from the command line synopsis
and add the missing .Ar markup to it.
* Do not mention the terminating newline for the empty command
since it isn't mentioned for any other command either.
* Make the description of the empty command easier to understand.
Joint work with martijn@ and jmc@.


# 1.71 10-Jul-2019 jmc

document the dropping of the second / and ? in line address REs;
thread started by mazocomp; diff from ropers, shortened by me;

ok martijn schwarze


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.70 26-Apr-2018 martijn

Make ed's 'l' command end lines with a '$' and make sure that literal
'$' characters are escaped, so that we are POSIX compliant.

The omission of trailing '$' was originally hidden behind a BACKWARDS
flag. This flag was most likely introduced to be compatible with 4.4BSD.
Thanks to naddy@ for pointing me to the 4.4BSD ed implementation.

I tried to trace the origin and enabling of the BACKWARDS flag, since
both FreeBSD and NetBSD have the flag, but only FreeBSD doesn't have it
enabled. Both projects had an alm@ working on ed during 1993-1995 during
which he added this flag to both projects and only enabled it on NetBSD,
but I wasn't able to reach him on any known address.
Thanks to Ed Schouten (ed@freebsd), and Michael W. Lucas of the ed
Mastery book for helping me trying to locate Andrew Moore.

Problem originally prodded by garzon.lucero@gmail.com and later
independently re-requested by n.reusse@hxgn.net.

OK tb@, guenther@, and mwl@mwl.io


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.69 05-Jul-2017 schwarze

nits about trailing punctuation found with mandoc -Tlint


Revision tags: OPENBSD_6_1_BASE
# 1.68 23-Sep-2016 jmc

remove the note about the list command (l) displaying a --More--
prompt for huge lines (according to otto this happens only when
BACKWARDS is not defined);

ok otto


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.67 20-Nov-2015 tb

honestly i think you should just zap that paragraph - it doesn;t make
sense to document that posix more or less says something should happen,
and that it does.

jmc


# 1.66 20-Nov-2015 tb

make ed restore the user defined prompt (specified with -p) when it was turned
off and then on again with 'P'.

ok daniel@


# 1.65 14-Sep-2015 schwarze

Avoid .Ns right after .Pf, it's pointless.
In some cases, do additional cleanup in the immediate vicinity.


Revision tags: OPENBSD_5_8_BASE
# 1.64 22-Jun-2015 jmc

theo buehler points out that posix specifies a prompt defined using -p
be reinstated when toggled off then on again; this seems to make sense,
but posix is not explicit.

we know that gnu ed and freebsd do reinstate the user defined prompt, but
we do not. no one has yet stepped up to change this, so i'm adding a note
to this effect until such a time as we do/

i have not tweaked the text for -p or "P" to allow for an easy back out
if behaviour does change;


Revision tags: OPENBSD_5_7_BASE
# 1.63 04-Dec-2014 daniel

document some more commands that are POSIX extensions. ok jmc@


# 1.62 26-Nov-2014 jmc

document in STANDARDS that we do not mark eols with $;
originally reported by ezequiel garz?n


Revision tags: OPENBSD_5_6_BASE
# 1.61 14-Apr-2014 jmc

more x removal;


# 1.60 14-Apr-2014 tedu

remove nonstandard DES support because DES. ok beck deraadt miod


# 1.59 06-Mar-2014 jmc

add an ASYNCHRONOUS EVENTS section for signals, as per vi;
ok millert


Revision tags: OPENBSD_5_5_BASE
# 1.58 22-Feb-2014 jmc

STANDARDS:
- `%' is an extension
- `^' is neither required nor prohibited by posix
- the deprecated `-' option is "behaviour unspecified"

ok millert


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.57 03-Sep-2010 jmc

add an EXIT STATUS section for /bin;


Revision tags: OPENBSD_4_8_BASE
# 1.56 27-Jul-2010 jmc

properly escape some "!"; reported by kristaps


# 1.55 22-Jul-2010 jmc

move exit returns blurb out of DIAGNOSTICS; from daniel dickman


Revision tags: OPENBSD_4_7_BASE
# 1.54 10-Jan-2010 jmc

remove references to docs we no longer install;


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.53 08-Feb-2009 jmc

bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few
updates to follow;


# 1.52 01-Oct-2008 jmc

for the `g' and `G' commands, document that if no lines match
the regular expression then the current line number remains unchanged;


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.51 31-May-2007 jmc

convert to new .Dd format;


# 1.50 29-May-2007 jmc

- consistent STANDARDS blurb
- note which options are extensions to POSIX

discussed w/ deraadt otto millert


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.49 04-Oct-2004 jmc

remove the section on regular expressions - instead point people
to re_format.7 (which is where the list of BREs went);

also, rename LIMITATIONS to CAVEATS, as this is a standard mdoc thing,
and shuffle it to the end of the page;


Revision tags: OPENBSD_3_6_BASE
# 1.48 19-Apr-2004 jmc

correct path to usd docs;


Revision tags: OPENBSD_3_5_BASE
# 1.47 12-Feb-2004 jmc

some typos and macro simplification;


# 1.46 31-Jan-2004 jmc

make references to USD docs clearer;


# 1.45 13-Dec-2003 jmc

sort options, and adjust -width of options' list;


# 1.44 25-Sep-2003 jmc

replace .Em with more appropriate macros. some other cleanup;


Revision tags: OPENBSD_3_4_BASE
# 1.43 02-Sep-2003 jmc

escape punctuation;
ok deraadt@


# 1.42 27-Jul-2003 jmc

USD docs for ed are 9-10, not 12,13;


# 1.41 29-May-2003 jmc

- section reorder
- correct macro
- escape some whitespace


# 1.40 28-Apr-2003 jmc

typos;

suggestions, corrections and ok millert@


Revision tags: OPENBSD_3_3_BASE
# 1.39 18-Feb-2003 jmc

copyrights added;

ed(1): Andrew Moore
patch(1): Larry Wall (thanks espie@ for help with this one)
units(1): Adrian Mariano


# 1.38 04-Oct-2002 deraadt

wrong word; cjeker@diehard.n-r-g.com


Revision tags: OPENBSD_3_2_BASE
# 1.37 31-Aug-2002 mpech

Unbreak. We have situations where last space in the line is required.
From dfa@openbsd.ru


Revision tags: OPENBSD_3_1_BASE
# 1.36 17-Feb-2002 millert

Mention deprecated '-' flag (same as -s) since it is listed in the
SYNOPSIS.


# 1.35 21-Dec-2001 mpech

Initial patch for a new mdoc issue.
Powered by @mantoya:
o) kill extra line in the end of file;
o) kill extra space in the end of line;
o) replace blank lines with .Pp;

millert@ ok


# 1.34 13-Nov-2001 mpech

o) start new sentence on a new line;
o) don't use .Pp before/after .Ss;
o) wrap long lines;
o) fix bogus .Xr usage;

millert@ ok;


Revision tags: OPENBSD_3_0_BASE
# 1.33 20-Jul-2001 mpech

we don't like:
o) .Pp before/after .Sh;
o) .Pp before/after .Rs/.Re;
o) .Nm without argument in SYNOPSIS;


# 1.32 23-Jun-2001 deraadt

ok, tmac is now fixed


# 1.31 23-Jun-2001 deraadt

join .%A entries; most by bk@rt.fm


# 1.30 28-May-2001 aaron

Various fixes; mpech@prosoft.org.lv


Revision tags: OPENBSD_2_9_BASE
# 1.29 09-Nov-2000 aaron

- Some section shuffling: conform to the standard order documented in mdoc(7)
- .Sh AUTHOR -> .Sh AUTHORS


# 1.28 09-Nov-2000 aaron

Insert some missing commas.


Revision tags: OPENBSD_2_8_BASE
# 1.27 06-Oct-2000 aaron

- Get rid of more short lines.
- Fix a formatting error I missed in the last commit.


# 1.26 06-Oct-2000 aaron

- Fix numerous formatting glitches.
- Convert plain reference to an mdoc macro'd reference.
- Get rid of some annoying short lines, which make the man src hard to read.
- parenthesis -> parentheses


Revision tags: OPENBSD_2_7_BASE
# 1.25 23-Apr-2000 aaron

Some fixups.


# 1.24 21-Apr-2000 aaron

Don't hyphenate the words {left|right}most.


# 1.23 15-Apr-2000 aaron

Mostly punctuation fixes.


# 1.22 21-Mar-2000 aaron

Add HISTORY sections; from FreeBSD. Information originally obtained from
"A Quarter Centry of UNIX, Peter H. Salus, Page 41".


# 1.21 17-Mar-2000 aaron

Remove hard sentence breaks.


Revision tags: OPENBSD_2_6_BASE
# 1.20 04-Jul-1999 aaron

trash some old leftover macros and replace them with -mdoc macros


# 1.19 04-Jun-1999 aaron

start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@


# 1.18 23-May-1999 aaron

remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com


Revision tags: OPENBSD_2_5_BASE
# 1.17 01-Mar-1999 aaron

fix a command sequence description; d@, also some misc cleanup


# 1.16 15-Dec-1998 aaron

always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.net


# 1.15 28-Nov-1998 aaron

start killing redundant .Nm macro arguments (mandoc ``remembers'' the first one
it's given)


# 1.14 06-Nov-1998 aaron

use .Dq/.Sq macros instead of `` ''s and ` 's (think typesetting and future
processing); kill redundant .Pp macros; other misc fixes


Revision tags: OPENBSD_2_4_BASE
# 1.13 23-Sep-1998 aaron

alphabetize SEE ALSO entries and numerically order according to section


# 1.12 14-Sep-1998 aaron

First complete sweep of man pages, bin/. Command/function names previously
(incorrectly) capatilized are fixed. Comma splices, hyphenations, SYNOPSIS
cleanups, other miscellaneous typos.


# 1.11 01-Sep-1998 deraadt

more man page fixes; aaron@ug.cs.dal.ca


# 1.10 21-Jul-1998 deraadt

fix +n description; jkoshy@freebsd


Revision tags: OPENBSD_2_3_BASE
# 1.9 02-Jan-1998 deraadt

man page error; helbig


Revision tags: OPENBSD_2_2_BASE
# 1.8 30-Aug-1997 deraadt

minor errors; josh@quick.net


# 1.7 04-Aug-1997 deraadt

bad Ns


# 1.6 04-Aug-1997 deraadt

more Ns


# 1.5 03-Aug-1997 deraadt

oops. ok, why does my footer not show up yet??


# 1.4 03-Aug-1997 deraadt

roughly 3 hours of slaving results in a much more beautiful mdoc man page.


Revision tags: OPENBSD_2_1_BASE
# 1.3 10-Dec-1996 deraadt

"the the" purge


Revision tags: OPENBSD_2_0_BASE
# 1.2 23-Jun-1996 deraadt

update rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.75 30-Jul-2019 schwarze

In addresses, consistently use "+" rather than ".+1".
Both have the same meaning, but the former is explicitly defined
in this manual page as "the next line" whereas the latter requires
combining various pieces of information for understanding.
Unification suggested and patch OK'ed by martijn@.


# 1.74 20-Jul-2019 schwarze

1. Correct the description of the g command to match POSIX and our
implementation; it was oversimplified and arguably incorrect.
2. Explicitely compare the behaviour of empty command lists for g,
empty command lists for G, and empty commands because these subtle
differences are quite confusing.
3. Say more precisely what the v and V commands do, avoiding the
fuzzy wording "similar".
All these issues were first pointed out by martijn@.
Feedback and OK martijn@; "diff reads ok" jmc@ on an earlier version.


# 1.73 15-Jul-2019 schwarze

Explain in which circumstances trailing slashes can be omitted after
the g and G commands, and polish the wording a bit explaining empty
command lists.
Closing a gap in the manual reported by <mazocomp at disroot dot org>.
OK jmc@ martijn@


# 1.72 12-Jul-2019 schwarze

Minor polishing:
* Delete a stray blank from the command line synopsis
and add the missing .Ar markup to it.
* Do not mention the terminating newline for the empty command
since it isn't mentioned for any other command either.
* Make the description of the empty command easier to understand.
Joint work with martijn@ and jmc@.


# 1.71 10-Jul-2019 jmc

document the dropping of the second / and ? in line address REs;
thread started by mazocomp; diff from ropers, shortened by me;

ok martijn schwarze


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.70 26-Apr-2018 martijn

Make ed's 'l' command end lines with a '$' and make sure that literal
'$' characters are escaped, so that we are POSIX compliant.

The omission of trailing '$' was originally hidden behind a BACKWARDS
flag. This flag was most likely introduced to be compatible with 4.4BSD.
Thanks to naddy@ for pointing me to the 4.4BSD ed implementation.

I tried to trace the origin and enabling of the BACKWARDS flag, since
both FreeBSD and NetBSD have the flag, but only FreeBSD doesn't have it
enabled. Both projects had an alm@ working on ed during 1993-1995 during
which he added this flag to both projects and only enabled it on NetBSD,
but I wasn't able to reach him on any known address.
Thanks to Ed Schouten (ed@freebsd), and Michael W. Lucas of the ed
Mastery book for helping me trying to locate Andrew Moore.

Problem originally prodded by garzon.lucero@gmail.com and later
independently re-requested by n.reusse@hxgn.net.

OK tb@, guenther@, and mwl@mwl.io


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.69 05-Jul-2017 schwarze

nits about trailing punctuation found with mandoc -Tlint


Revision tags: OPENBSD_6_1_BASE
# 1.68 23-Sep-2016 jmc

remove the note about the list command (l) displaying a --More--
prompt for huge lines (according to otto this happens only when
BACKWARDS is not defined);

ok otto


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.67 20-Nov-2015 tb

honestly i think you should just zap that paragraph - it doesn;t make
sense to document that posix more or less says something should happen,
and that it does.

jmc


# 1.66 20-Nov-2015 tb

make ed restore the user defined prompt (specified with -p) when it was turned
off and then on again with 'P'.

ok daniel@


# 1.65 14-Sep-2015 schwarze

Avoid .Ns right after .Pf, it's pointless.
In some cases, do additional cleanup in the immediate vicinity.


Revision tags: OPENBSD_5_8_BASE
# 1.64 22-Jun-2015 jmc

theo buehler points out that posix specifies a prompt defined using -p
be reinstated when toggled off then on again; this seems to make sense,
but posix is not explicit.

we know that gnu ed and freebsd do reinstate the user defined prompt, but
we do not. no one has yet stepped up to change this, so i'm adding a note
to this effect until such a time as we do/

i have not tweaked the text for -p or "P" to allow for an easy back out
if behaviour does change;


Revision tags: OPENBSD_5_7_BASE
# 1.63 04-Dec-2014 daniel

document some more commands that are POSIX extensions. ok jmc@


# 1.62 26-Nov-2014 jmc

document in STANDARDS that we do not mark eols with $;
originally reported by ezequiel garz?n


Revision tags: OPENBSD_5_6_BASE
# 1.61 14-Apr-2014 jmc

more x removal;


# 1.60 14-Apr-2014 tedu

remove nonstandard DES support because DES. ok beck deraadt miod


# 1.59 06-Mar-2014 jmc

add an ASYNCHRONOUS EVENTS section for signals, as per vi;
ok millert


Revision tags: OPENBSD_5_5_BASE
# 1.58 22-Feb-2014 jmc

STANDARDS:
- `%' is an extension
- `^' is neither required nor prohibited by posix
- the deprecated `-' option is "behaviour unspecified"

ok millert


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.57 03-Sep-2010 jmc

add an EXIT STATUS section for /bin;


Revision tags: OPENBSD_4_8_BASE
# 1.56 27-Jul-2010 jmc

properly escape some "!"; reported by kristaps


# 1.55 22-Jul-2010 jmc

move exit returns blurb out of DIAGNOSTICS; from daniel dickman


Revision tags: OPENBSD_4_7_BASE
# 1.54 10-Jan-2010 jmc

remove references to docs we no longer install;


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.53 08-Feb-2009 jmc

bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few
updates to follow;


# 1.52 01-Oct-2008 jmc

for the `g' and `G' commands, document that if no lines match
the regular expression then the current line number remains unchanged;


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.51 31-May-2007 jmc

convert to new .Dd format;


# 1.50 29-May-2007 jmc

- consistent STANDARDS blurb
- note which options are extensions to POSIX

discussed w/ deraadt otto millert


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.49 04-Oct-2004 jmc

remove the section on regular expressions - instead point people
to re_format.7 (which is where the list of BREs went);

also, rename LIMITATIONS to CAVEATS, as this is a standard mdoc thing,
and shuffle it to the end of the page;


Revision tags: OPENBSD_3_6_BASE
# 1.48 19-Apr-2004 jmc

correct path to usd docs;


Revision tags: OPENBSD_3_5_BASE
# 1.47 12-Feb-2004 jmc

some typos and macro simplification;


# 1.46 31-Jan-2004 jmc

make references to USD docs clearer;


# 1.45 13-Dec-2003 jmc

sort options, and adjust -width of options' list;


# 1.44 25-Sep-2003 jmc

replace .Em with more appropriate macros. some other cleanup;


Revision tags: OPENBSD_3_4_BASE
# 1.43 02-Sep-2003 jmc

escape punctuation;
ok deraadt@


# 1.42 27-Jul-2003 jmc

USD docs for ed are 9-10, not 12,13;


# 1.41 29-May-2003 jmc

- section reorder
- correct macro
- escape some whitespace


# 1.40 28-Apr-2003 jmc

typos;

suggestions, corrections and ok millert@


Revision tags: OPENBSD_3_3_BASE
# 1.39 18-Feb-2003 jmc

copyrights added;

ed(1): Andrew Moore
patch(1): Larry Wall (thanks espie@ for help with this one)
units(1): Adrian Mariano


# 1.38 04-Oct-2002 deraadt

wrong word; cjeker@diehard.n-r-g.com


Revision tags: OPENBSD_3_2_BASE
# 1.37 31-Aug-2002 mpech

Unbreak. We have situations where last space in the line is required.
From dfa@openbsd.ru


Revision tags: OPENBSD_3_1_BASE
# 1.36 17-Feb-2002 millert

Mention deprecated '-' flag (same as -s) since it is listed in the
SYNOPSIS.


# 1.35 21-Dec-2001 mpech

Initial patch for a new mdoc issue.
Powered by @mantoya:
o) kill extra line in the end of file;
o) kill extra space in the end of line;
o) replace blank lines with .Pp;

millert@ ok


# 1.34 13-Nov-2001 mpech

o) start new sentence on a new line;
o) don't use .Pp before/after .Ss;
o) wrap long lines;
o) fix bogus .Xr usage;

millert@ ok;


Revision tags: OPENBSD_3_0_BASE
# 1.33 20-Jul-2001 mpech

we don't like:
o) .Pp before/after .Sh;
o) .Pp before/after .Rs/.Re;
o) .Nm without argument in SYNOPSIS;


# 1.32 23-Jun-2001 deraadt

ok, tmac is now fixed


# 1.31 23-Jun-2001 deraadt

join .%A entries; most by bk@rt.fm


# 1.30 28-May-2001 aaron

Various fixes; mpech@prosoft.org.lv


Revision tags: OPENBSD_2_9_BASE
# 1.29 09-Nov-2000 aaron

- Some section shuffling: conform to the standard order documented in mdoc(7)
- .Sh AUTHOR -> .Sh AUTHORS


# 1.28 09-Nov-2000 aaron

Insert some missing commas.


Revision tags: OPENBSD_2_8_BASE
# 1.27 06-Oct-2000 aaron

- Get rid of more short lines.
- Fix a formatting error I missed in the last commit.


# 1.26 06-Oct-2000 aaron

- Fix numerous formatting glitches.
- Convert plain reference to an mdoc macro'd reference.
- Get rid of some annoying short lines, which make the man src hard to read.
- parenthesis -> parentheses


Revision tags: OPENBSD_2_7_BASE
# 1.25 23-Apr-2000 aaron

Some fixups.


# 1.24 21-Apr-2000 aaron

Don't hyphenate the words {left|right}most.


# 1.23 15-Apr-2000 aaron

Mostly punctuation fixes.


# 1.22 21-Mar-2000 aaron

Add HISTORY sections; from FreeBSD. Information originally obtained from
"A Quarter Centry of UNIX, Peter H. Salus, Page 41".


# 1.21 17-Mar-2000 aaron

Remove hard sentence breaks.


Revision tags: OPENBSD_2_6_BASE
# 1.20 04-Jul-1999 aaron

trash some old leftover macros and replace them with -mdoc macros


# 1.19 04-Jun-1999 aaron

start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@


# 1.18 23-May-1999 aaron

remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com


Revision tags: OPENBSD_2_5_BASE
# 1.17 01-Mar-1999 aaron

fix a command sequence description; d@, also some misc cleanup


# 1.16 15-Dec-1998 aaron

always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.net


# 1.15 28-Nov-1998 aaron

start killing redundant .Nm macro arguments (mandoc ``remembers'' the first one
it's given)


# 1.14 06-Nov-1998 aaron

use .Dq/.Sq macros instead of `` ''s and ` 's (think typesetting and future
processing); kill redundant .Pp macros; other misc fixes


Revision tags: OPENBSD_2_4_BASE
# 1.13 23-Sep-1998 aaron

alphabetize SEE ALSO entries and numerically order according to section


# 1.12 14-Sep-1998 aaron

First complete sweep of man pages, bin/. Command/function names previously
(incorrectly) capatilized are fixed. Comma splices, hyphenations, SYNOPSIS
cleanups, other miscellaneous typos.


# 1.11 01-Sep-1998 deraadt

more man page fixes; aaron@ug.cs.dal.ca


# 1.10 21-Jul-1998 deraadt

fix +n description; jkoshy@freebsd


Revision tags: OPENBSD_2_3_BASE
# 1.9 02-Jan-1998 deraadt

man page error; helbig


Revision tags: OPENBSD_2_2_BASE
# 1.8 30-Aug-1997 deraadt

minor errors; josh@quick.net


# 1.7 04-Aug-1997 deraadt

bad Ns


# 1.6 04-Aug-1997 deraadt

more Ns


# 1.5 03-Aug-1997 deraadt

oops. ok, why does my footer not show up yet??


# 1.4 03-Aug-1997 deraadt

roughly 3 hours of slaving results in a much more beautiful mdoc man page.


Revision tags: OPENBSD_2_1_BASE
# 1.3 10-Dec-1996 deraadt

"the the" purge


Revision tags: OPENBSD_2_0_BASE
# 1.2 23-Jun-1996 deraadt

update rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.74 20-Jul-2019 schwarze

1. Correct the description of the g command to match POSIX and our
implementation; it was oversimplified and arguably incorrect.
2. Explicitely compare the behaviour of empty command lists for g,
empty command lists for G, and empty commands because these subtle
differences are quite confusing.
3. Say more precisely what the v and V commands do, avoiding the
fuzzy wording "similar".
All these issues were first pointed out by martijn@.
Feedback and OK martijn@; "diff reads ok" jmc@ on an earlier version.


# 1.73 15-Jul-2019 schwarze

Explain in which circumstances trailing slashes can be omitted after
the g and G commands, and polish the wording a bit explaining empty
command lists.
Closing a gap in the manual reported by <mazocomp at disroot dot org>.
OK jmc@ martijn@


# 1.72 12-Jul-2019 schwarze

Minor polishing:
* Delete a stray blank from the command line synopsis
and add the missing .Ar markup to it.
* Do not mention the terminating newline for the empty command
since it isn't mentioned for any other command either.
* Make the description of the empty command easier to understand.
Joint work with martijn@ and jmc@.


# 1.71 10-Jul-2019 jmc

document the dropping of the second / and ? in line address REs;
thread started by mazocomp; diff from ropers, shortened by me;

ok martijn schwarze


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.70 26-Apr-2018 martijn

Make ed's 'l' command end lines with a '$' and make sure that literal
'$' characters are escaped, so that we are POSIX compliant.

The omission of trailing '$' was originally hidden behind a BACKWARDS
flag. This flag was most likely introduced to be compatible with 4.4BSD.
Thanks to naddy@ for pointing me to the 4.4BSD ed implementation.

I tried to trace the origin and enabling of the BACKWARDS flag, since
both FreeBSD and NetBSD have the flag, but only FreeBSD doesn't have it
enabled. Both projects had an alm@ working on ed during 1993-1995 during
which he added this flag to both projects and only enabled it on NetBSD,
but I wasn't able to reach him on any known address.
Thanks to Ed Schouten (ed@freebsd), and Michael W. Lucas of the ed
Mastery book for helping me trying to locate Andrew Moore.

Problem originally prodded by garzon.lucero@gmail.com and later
independently re-requested by n.reusse@hxgn.net.

OK tb@, guenther@, and mwl@mwl.io


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.69 05-Jul-2017 schwarze

nits about trailing punctuation found with mandoc -Tlint


Revision tags: OPENBSD_6_1_BASE
# 1.68 23-Sep-2016 jmc

remove the note about the list command (l) displaying a --More--
prompt for huge lines (according to otto this happens only when
BACKWARDS is not defined);

ok otto


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.67 20-Nov-2015 tb

honestly i think you should just zap that paragraph - it doesn;t make
sense to document that posix more or less says something should happen,
and that it does.

jmc


# 1.66 20-Nov-2015 tb

make ed restore the user defined prompt (specified with -p) when it was turned
off and then on again with 'P'.

ok daniel@


# 1.65 14-Sep-2015 schwarze

Avoid .Ns right after .Pf, it's pointless.
In some cases, do additional cleanup in the immediate vicinity.


Revision tags: OPENBSD_5_8_BASE
# 1.64 22-Jun-2015 jmc

theo buehler points out that posix specifies a prompt defined using -p
be reinstated when toggled off then on again; this seems to make sense,
but posix is not explicit.

we know that gnu ed and freebsd do reinstate the user defined prompt, but
we do not. no one has yet stepped up to change this, so i'm adding a note
to this effect until such a time as we do/

i have not tweaked the text for -p or "P" to allow for an easy back out
if behaviour does change;


Revision tags: OPENBSD_5_7_BASE
# 1.63 04-Dec-2014 daniel

document some more commands that are POSIX extensions. ok jmc@


# 1.62 26-Nov-2014 jmc

document in STANDARDS that we do not mark eols with $;
originally reported by ezequiel garz?n


Revision tags: OPENBSD_5_6_BASE
# 1.61 14-Apr-2014 jmc

more x removal;


# 1.60 14-Apr-2014 tedu

remove nonstandard DES support because DES. ok beck deraadt miod


# 1.59 06-Mar-2014 jmc

add an ASYNCHRONOUS EVENTS section for signals, as per vi;
ok millert


Revision tags: OPENBSD_5_5_BASE
# 1.58 22-Feb-2014 jmc

STANDARDS:
- `%' is an extension
- `^' is neither required nor prohibited by posix
- the deprecated `-' option is "behaviour unspecified"

ok millert


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.57 03-Sep-2010 jmc

add an EXIT STATUS section for /bin;


Revision tags: OPENBSD_4_8_BASE
# 1.56 27-Jul-2010 jmc

properly escape some "!"; reported by kristaps


# 1.55 22-Jul-2010 jmc

move exit returns blurb out of DIAGNOSTICS; from daniel dickman


Revision tags: OPENBSD_4_7_BASE
# 1.54 10-Jan-2010 jmc

remove references to docs we no longer install;


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.53 08-Feb-2009 jmc

bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few
updates to follow;


# 1.52 01-Oct-2008 jmc

for the `g' and `G' commands, document that if no lines match
the regular expression then the current line number remains unchanged;


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.51 31-May-2007 jmc

convert to new .Dd format;


# 1.50 29-May-2007 jmc

- consistent STANDARDS blurb
- note which options are extensions to POSIX

discussed w/ deraadt otto millert


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.49 04-Oct-2004 jmc

remove the section on regular expressions - instead point people
to re_format.7 (which is where the list of BREs went);

also, rename LIMITATIONS to CAVEATS, as this is a standard mdoc thing,
and shuffle it to the end of the page;


Revision tags: OPENBSD_3_6_BASE
# 1.48 19-Apr-2004 jmc

correct path to usd docs;


Revision tags: OPENBSD_3_5_BASE
# 1.47 12-Feb-2004 jmc

some typos and macro simplification;


# 1.46 31-Jan-2004 jmc

make references to USD docs clearer;


# 1.45 13-Dec-2003 jmc

sort options, and adjust -width of options' list;


# 1.44 25-Sep-2003 jmc

replace .Em with more appropriate macros. some other cleanup;


Revision tags: OPENBSD_3_4_BASE
# 1.43 02-Sep-2003 jmc

escape punctuation;
ok deraadt@


# 1.42 27-Jul-2003 jmc

USD docs for ed are 9-10, not 12,13;


# 1.41 29-May-2003 jmc

- section reorder
- correct macro
- escape some whitespace


# 1.40 28-Apr-2003 jmc

typos;

suggestions, corrections and ok millert@


Revision tags: OPENBSD_3_3_BASE
# 1.39 18-Feb-2003 jmc

copyrights added;

ed(1): Andrew Moore
patch(1): Larry Wall (thanks espie@ for help with this one)
units(1): Adrian Mariano


# 1.38 04-Oct-2002 deraadt

wrong word; cjeker@diehard.n-r-g.com


Revision tags: OPENBSD_3_2_BASE
# 1.37 31-Aug-2002 mpech

Unbreak. We have situations where last space in the line is required.
From dfa@openbsd.ru


Revision tags: OPENBSD_3_1_BASE
# 1.36 17-Feb-2002 millert

Mention deprecated '-' flag (same as -s) since it is listed in the
SYNOPSIS.


# 1.35 21-Dec-2001 mpech

Initial patch for a new mdoc issue.
Powered by @mantoya:
o) kill extra line in the end of file;
o) kill extra space in the end of line;
o) replace blank lines with .Pp;

millert@ ok


# 1.34 13-Nov-2001 mpech

o) start new sentence on a new line;
o) don't use .Pp before/after .Ss;
o) wrap long lines;
o) fix bogus .Xr usage;

millert@ ok;


Revision tags: OPENBSD_3_0_BASE
# 1.33 20-Jul-2001 mpech

we don't like:
o) .Pp before/after .Sh;
o) .Pp before/after .Rs/.Re;
o) .Nm without argument in SYNOPSIS;


# 1.32 23-Jun-2001 deraadt

ok, tmac is now fixed


# 1.31 23-Jun-2001 deraadt

join .%A entries; most by bk@rt.fm


# 1.30 28-May-2001 aaron

Various fixes; mpech@prosoft.org.lv


Revision tags: OPENBSD_2_9_BASE
# 1.29 09-Nov-2000 aaron

- Some section shuffling: conform to the standard order documented in mdoc(7)
- .Sh AUTHOR -> .Sh AUTHORS


# 1.28 09-Nov-2000 aaron

Insert some missing commas.


Revision tags: OPENBSD_2_8_BASE
# 1.27 06-Oct-2000 aaron

- Get rid of more short lines.
- Fix a formatting error I missed in the last commit.


# 1.26 06-Oct-2000 aaron

- Fix numerous formatting glitches.
- Convert plain reference to an mdoc macro'd reference.
- Get rid of some annoying short lines, which make the man src hard to read.
- parenthesis -> parentheses


Revision tags: OPENBSD_2_7_BASE
# 1.25 23-Apr-2000 aaron

Some fixups.


# 1.24 21-Apr-2000 aaron

Don't hyphenate the words {left|right}most.


# 1.23 15-Apr-2000 aaron

Mostly punctuation fixes.


# 1.22 21-Mar-2000 aaron

Add HISTORY sections; from FreeBSD. Information originally obtained from
"A Quarter Centry of UNIX, Peter H. Salus, Page 41".


# 1.21 17-Mar-2000 aaron

Remove hard sentence breaks.


Revision tags: OPENBSD_2_6_BASE
# 1.20 04-Jul-1999 aaron

trash some old leftover macros and replace them with -mdoc macros


# 1.19 04-Jun-1999 aaron

start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@


# 1.18 23-May-1999 aaron

remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com


Revision tags: OPENBSD_2_5_BASE
# 1.17 01-Mar-1999 aaron

fix a command sequence description; d@, also some misc cleanup


# 1.16 15-Dec-1998 aaron

always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.net


# 1.15 28-Nov-1998 aaron

start killing redundant .Nm macro arguments (mandoc ``remembers'' the first one
it's given)


# 1.14 06-Nov-1998 aaron

use .Dq/.Sq macros instead of `` ''s and ` 's (think typesetting and future
processing); kill redundant .Pp macros; other misc fixes


Revision tags: OPENBSD_2_4_BASE
# 1.13 23-Sep-1998 aaron

alphabetize SEE ALSO entries and numerically order according to section


# 1.12 14-Sep-1998 aaron

First complete sweep of man pages, bin/. Command/function names previously
(incorrectly) capatilized are fixed. Comma splices, hyphenations, SYNOPSIS
cleanups, other miscellaneous typos.


# 1.11 01-Sep-1998 deraadt

more man page fixes; aaron@ug.cs.dal.ca


# 1.10 21-Jul-1998 deraadt

fix +n description; jkoshy@freebsd


Revision tags: OPENBSD_2_3_BASE
# 1.9 02-Jan-1998 deraadt

man page error; helbig


Revision tags: OPENBSD_2_2_BASE
# 1.8 30-Aug-1997 deraadt

minor errors; josh@quick.net


# 1.7 04-Aug-1997 deraadt

bad Ns


# 1.6 04-Aug-1997 deraadt

more Ns


# 1.5 03-Aug-1997 deraadt

oops. ok, why does my footer not show up yet??


# 1.4 03-Aug-1997 deraadt

roughly 3 hours of slaving results in a much more beautiful mdoc man page.


Revision tags: OPENBSD_2_1_BASE
# 1.3 10-Dec-1996 deraadt

"the the" purge


Revision tags: OPENBSD_2_0_BASE
# 1.2 23-Jun-1996 deraadt

update rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.73 15-Jul-2019 schwarze

Explain in which circumstances trailing slashes can be omitted after
the g and G commands, and polish the wording a bit explaining empty
command lists.
Closing a gap in the manual reported by <mazocomp at disroot dot org>.
OK jmc@ martijn@


# 1.72 12-Jul-2019 schwarze

Minor polishing:
* Delete a stray blank from the command line synopsis
and add the missing .Ar markup to it.
* Do not mention the terminating newline for the empty command
since it isn't mentioned for any other command either.
* Make the description of the empty command easier to understand.
Joint work with martijn@ and jmc@.


# 1.71 10-Jul-2019 jmc

document the dropping of the second / and ? in line address REs;
thread started by mazocomp; diff from ropers, shortened by me;

ok martijn schwarze


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.70 26-Apr-2018 martijn

Make ed's 'l' command end lines with a '$' and make sure that literal
'$' characters are escaped, so that we are POSIX compliant.

The omission of trailing '$' was originally hidden behind a BACKWARDS
flag. This flag was most likely introduced to be compatible with 4.4BSD.
Thanks to naddy@ for pointing me to the 4.4BSD ed implementation.

I tried to trace the origin and enabling of the BACKWARDS flag, since
both FreeBSD and NetBSD have the flag, but only FreeBSD doesn't have it
enabled. Both projects had an alm@ working on ed during 1993-1995 during
which he added this flag to both projects and only enabled it on NetBSD,
but I wasn't able to reach him on any known address.
Thanks to Ed Schouten (ed@freebsd), and Michael W. Lucas of the ed
Mastery book for helping me trying to locate Andrew Moore.

Problem originally prodded by garzon.lucero@gmail.com and later
independently re-requested by n.reusse@hxgn.net.

OK tb@, guenther@, and mwl@mwl.io


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.69 05-Jul-2017 schwarze

nits about trailing punctuation found with mandoc -Tlint


Revision tags: OPENBSD_6_1_BASE
# 1.68 23-Sep-2016 jmc

remove the note about the list command (l) displaying a --More--
prompt for huge lines (according to otto this happens only when
BACKWARDS is not defined);

ok otto


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.67 20-Nov-2015 tb

honestly i think you should just zap that paragraph - it doesn;t make
sense to document that posix more or less says something should happen,
and that it does.

jmc


# 1.66 20-Nov-2015 tb

make ed restore the user defined prompt (specified with -p) when it was turned
off and then on again with 'P'.

ok daniel@


# 1.65 14-Sep-2015 schwarze

Avoid .Ns right after .Pf, it's pointless.
In some cases, do additional cleanup in the immediate vicinity.


Revision tags: OPENBSD_5_8_BASE
# 1.64 22-Jun-2015 jmc

theo buehler points out that posix specifies a prompt defined using -p
be reinstated when toggled off then on again; this seems to make sense,
but posix is not explicit.

we know that gnu ed and freebsd do reinstate the user defined prompt, but
we do not. no one has yet stepped up to change this, so i'm adding a note
to this effect until such a time as we do/

i have not tweaked the text for -p or "P" to allow for an easy back out
if behaviour does change;


Revision tags: OPENBSD_5_7_BASE
# 1.63 04-Dec-2014 daniel

document some more commands that are POSIX extensions. ok jmc@


# 1.62 26-Nov-2014 jmc

document in STANDARDS that we do not mark eols with $;
originally reported by ezequiel garz?n


Revision tags: OPENBSD_5_6_BASE
# 1.61 14-Apr-2014 jmc

more x removal;


# 1.60 14-Apr-2014 tedu

remove nonstandard DES support because DES. ok beck deraadt miod


# 1.59 06-Mar-2014 jmc

add an ASYNCHRONOUS EVENTS section for signals, as per vi;
ok millert


Revision tags: OPENBSD_5_5_BASE
# 1.58 22-Feb-2014 jmc

STANDARDS:
- `%' is an extension
- `^' is neither required nor prohibited by posix
- the deprecated `-' option is "behaviour unspecified"

ok millert


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.57 03-Sep-2010 jmc

add an EXIT STATUS section for /bin;


Revision tags: OPENBSD_4_8_BASE
# 1.56 27-Jul-2010 jmc

properly escape some "!"; reported by kristaps


# 1.55 22-Jul-2010 jmc

move exit returns blurb out of DIAGNOSTICS; from daniel dickman


Revision tags: OPENBSD_4_7_BASE
# 1.54 10-Jan-2010 jmc

remove references to docs we no longer install;


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.53 08-Feb-2009 jmc

bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few
updates to follow;


# 1.52 01-Oct-2008 jmc

for the `g' and `G' commands, document that if no lines match
the regular expression then the current line number remains unchanged;


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.51 31-May-2007 jmc

convert to new .Dd format;


# 1.50 29-May-2007 jmc

- consistent STANDARDS blurb
- note which options are extensions to POSIX

discussed w/ deraadt otto millert


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.49 04-Oct-2004 jmc

remove the section on regular expressions - instead point people
to re_format.7 (which is where the list of BREs went);

also, rename LIMITATIONS to CAVEATS, as this is a standard mdoc thing,
and shuffle it to the end of the page;


Revision tags: OPENBSD_3_6_BASE
# 1.48 19-Apr-2004 jmc

correct path to usd docs;


Revision tags: OPENBSD_3_5_BASE
# 1.47 12-Feb-2004 jmc

some typos and macro simplification;


# 1.46 31-Jan-2004 jmc

make references to USD docs clearer;


# 1.45 13-Dec-2003 jmc

sort options, and adjust -width of options' list;


# 1.44 25-Sep-2003 jmc

replace .Em with more appropriate macros. some other cleanup;


Revision tags: OPENBSD_3_4_BASE
# 1.43 02-Sep-2003 jmc

escape punctuation;
ok deraadt@


# 1.42 27-Jul-2003 jmc

USD docs for ed are 9-10, not 12,13;


# 1.41 29-May-2003 jmc

- section reorder
- correct macro
- escape some whitespace


# 1.40 28-Apr-2003 jmc

typos;

suggestions, corrections and ok millert@


Revision tags: OPENBSD_3_3_BASE
# 1.39 18-Feb-2003 jmc

copyrights added;

ed(1): Andrew Moore
patch(1): Larry Wall (thanks espie@ for help with this one)
units(1): Adrian Mariano


# 1.38 04-Oct-2002 deraadt

wrong word; cjeker@diehard.n-r-g.com


Revision tags: OPENBSD_3_2_BASE
# 1.37 31-Aug-2002 mpech

Unbreak. We have situations where last space in the line is required.
From dfa@openbsd.ru


Revision tags: OPENBSD_3_1_BASE
# 1.36 17-Feb-2002 millert

Mention deprecated '-' flag (same as -s) since it is listed in the
SYNOPSIS.


# 1.35 21-Dec-2001 mpech

Initial patch for a new mdoc issue.
Powered by @mantoya:
o) kill extra line in the end of file;
o) kill extra space in the end of line;
o) replace blank lines with .Pp;

millert@ ok


# 1.34 13-Nov-2001 mpech

o) start new sentence on a new line;
o) don't use .Pp before/after .Ss;
o) wrap long lines;
o) fix bogus .Xr usage;

millert@ ok;


Revision tags: OPENBSD_3_0_BASE
# 1.33 20-Jul-2001 mpech

we don't like:
o) .Pp before/after .Sh;
o) .Pp before/after .Rs/.Re;
o) .Nm without argument in SYNOPSIS;


# 1.32 23-Jun-2001 deraadt

ok, tmac is now fixed


# 1.31 23-Jun-2001 deraadt

join .%A entries; most by bk@rt.fm


# 1.30 28-May-2001 aaron

Various fixes; mpech@prosoft.org.lv


Revision tags: OPENBSD_2_9_BASE
# 1.29 09-Nov-2000 aaron

- Some section shuffling: conform to the standard order documented in mdoc(7)
- .Sh AUTHOR -> .Sh AUTHORS


# 1.28 09-Nov-2000 aaron

Insert some missing commas.


Revision tags: OPENBSD_2_8_BASE
# 1.27 06-Oct-2000 aaron

- Get rid of more short lines.
- Fix a formatting error I missed in the last commit.


# 1.26 06-Oct-2000 aaron

- Fix numerous formatting glitches.
- Convert plain reference to an mdoc macro'd reference.
- Get rid of some annoying short lines, which make the man src hard to read.
- parenthesis -> parentheses


Revision tags: OPENBSD_2_7_BASE
# 1.25 23-Apr-2000 aaron

Some fixups.


# 1.24 21-Apr-2000 aaron

Don't hyphenate the words {left|right}most.


# 1.23 15-Apr-2000 aaron

Mostly punctuation fixes.


# 1.22 21-Mar-2000 aaron

Add HISTORY sections; from FreeBSD. Information originally obtained from
"A Quarter Centry of UNIX, Peter H. Salus, Page 41".


# 1.21 17-Mar-2000 aaron

Remove hard sentence breaks.


Revision tags: OPENBSD_2_6_BASE
# 1.20 04-Jul-1999 aaron

trash some old leftover macros and replace them with -mdoc macros


# 1.19 04-Jun-1999 aaron

start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@


# 1.18 23-May-1999 aaron

remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com


Revision tags: OPENBSD_2_5_BASE
# 1.17 01-Mar-1999 aaron

fix a command sequence description; d@, also some misc cleanup


# 1.16 15-Dec-1998 aaron

always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.net


# 1.15 28-Nov-1998 aaron

start killing redundant .Nm macro arguments (mandoc ``remembers'' the first one
it's given)


# 1.14 06-Nov-1998 aaron

use .Dq/.Sq macros instead of `` ''s and ` 's (think typesetting and future
processing); kill redundant .Pp macros; other misc fixes


Revision tags: OPENBSD_2_4_BASE
# 1.13 23-Sep-1998 aaron

alphabetize SEE ALSO entries and numerically order according to section


# 1.12 14-Sep-1998 aaron

First complete sweep of man pages, bin/. Command/function names previously
(incorrectly) capatilized are fixed. Comma splices, hyphenations, SYNOPSIS
cleanups, other miscellaneous typos.


# 1.11 01-Sep-1998 deraadt

more man page fixes; aaron@ug.cs.dal.ca


# 1.10 21-Jul-1998 deraadt

fix +n description; jkoshy@freebsd


Revision tags: OPENBSD_2_3_BASE
# 1.9 02-Jan-1998 deraadt

man page error; helbig


Revision tags: OPENBSD_2_2_BASE
# 1.8 30-Aug-1997 deraadt

minor errors; josh@quick.net


# 1.7 04-Aug-1997 deraadt

bad Ns


# 1.6 04-Aug-1997 deraadt

more Ns


# 1.5 03-Aug-1997 deraadt

oops. ok, why does my footer not show up yet??


# 1.4 03-Aug-1997 deraadt

roughly 3 hours of slaving results in a much more beautiful mdoc man page.


Revision tags: OPENBSD_2_1_BASE
# 1.3 10-Dec-1996 deraadt

"the the" purge


Revision tags: OPENBSD_2_0_BASE
# 1.2 23-Jun-1996 deraadt

update rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.72 12-Jul-2019 schwarze

Minor polishing:
* Delete a stray blank from the command line synopsis
and add the missing .Ar markup to it.
* Do not mention the terminating newline for the empty command
since it isn't mentioned for any other command either.
* Make the description of the empty command easier to understand.
Joint work with martijn@ and jmc@.


# 1.71 10-Jul-2019 jmc

document the dropping of the second / and ? in line address REs;
thread started by mazocomp; diff from ropers, shortened by me;

ok martijn schwarze


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.70 26-Apr-2018 martijn

Make ed's 'l' command end lines with a '$' and make sure that literal
'$' characters are escaped, so that we are POSIX compliant.

The omission of trailing '$' was originally hidden behind a BACKWARDS
flag. This flag was most likely introduced to be compatible with 4.4BSD.
Thanks to naddy@ for pointing me to the 4.4BSD ed implementation.

I tried to trace the origin and enabling of the BACKWARDS flag, since
both FreeBSD and NetBSD have the flag, but only FreeBSD doesn't have it
enabled. Both projects had an alm@ working on ed during 1993-1995 during
which he added this flag to both projects and only enabled it on NetBSD,
but I wasn't able to reach him on any known address.
Thanks to Ed Schouten (ed@freebsd), and Michael W. Lucas of the ed
Mastery book for helping me trying to locate Andrew Moore.

Problem originally prodded by garzon.lucero@gmail.com and later
independently re-requested by n.reusse@hxgn.net.

OK tb@, guenther@, and mwl@mwl.io


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.69 05-Jul-2017 schwarze

nits about trailing punctuation found with mandoc -Tlint


Revision tags: OPENBSD_6_1_BASE
# 1.68 23-Sep-2016 jmc

remove the note about the list command (l) displaying a --More--
prompt for huge lines (according to otto this happens only when
BACKWARDS is not defined);

ok otto


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.67 20-Nov-2015 tb

honestly i think you should just zap that paragraph - it doesn;t make
sense to document that posix more or less says something should happen,
and that it does.

jmc


# 1.66 20-Nov-2015 tb

make ed restore the user defined prompt (specified with -p) when it was turned
off and then on again with 'P'.

ok daniel@


# 1.65 14-Sep-2015 schwarze

Avoid .Ns right after .Pf, it's pointless.
In some cases, do additional cleanup in the immediate vicinity.


Revision tags: OPENBSD_5_8_BASE
# 1.64 22-Jun-2015 jmc

theo buehler points out that posix specifies a prompt defined using -p
be reinstated when toggled off then on again; this seems to make sense,
but posix is not explicit.

we know that gnu ed and freebsd do reinstate the user defined prompt, but
we do not. no one has yet stepped up to change this, so i'm adding a note
to this effect until such a time as we do/

i have not tweaked the text for -p or "P" to allow for an easy back out
if behaviour does change;


Revision tags: OPENBSD_5_7_BASE
# 1.63 04-Dec-2014 daniel

document some more commands that are POSIX extensions. ok jmc@


# 1.62 26-Nov-2014 jmc

document in STANDARDS that we do not mark eols with $;
originally reported by ezequiel garz?n


Revision tags: OPENBSD_5_6_BASE
# 1.61 14-Apr-2014 jmc

more x removal;


# 1.60 14-Apr-2014 tedu

remove nonstandard DES support because DES. ok beck deraadt miod


# 1.59 06-Mar-2014 jmc

add an ASYNCHRONOUS EVENTS section for signals, as per vi;
ok millert


Revision tags: OPENBSD_5_5_BASE
# 1.58 22-Feb-2014 jmc

STANDARDS:
- `%' is an extension
- `^' is neither required nor prohibited by posix
- the deprecated `-' option is "behaviour unspecified"

ok millert


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.57 03-Sep-2010 jmc

add an EXIT STATUS section for /bin;


Revision tags: OPENBSD_4_8_BASE
# 1.56 27-Jul-2010 jmc

properly escape some "!"; reported by kristaps


# 1.55 22-Jul-2010 jmc

move exit returns blurb out of DIAGNOSTICS; from daniel dickman


Revision tags: OPENBSD_4_7_BASE
# 1.54 10-Jan-2010 jmc

remove references to docs we no longer install;


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.53 08-Feb-2009 jmc

bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few
updates to follow;


# 1.52 01-Oct-2008 jmc

for the `g' and `G' commands, document that if no lines match
the regular expression then the current line number remains unchanged;


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.51 31-May-2007 jmc

convert to new .Dd format;


# 1.50 29-May-2007 jmc

- consistent STANDARDS blurb
- note which options are extensions to POSIX

discussed w/ deraadt otto millert


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.49 04-Oct-2004 jmc

remove the section on regular expressions - instead point people
to re_format.7 (which is where the list of BREs went);

also, rename LIMITATIONS to CAVEATS, as this is a standard mdoc thing,
and shuffle it to the end of the page;


Revision tags: OPENBSD_3_6_BASE
# 1.48 19-Apr-2004 jmc

correct path to usd docs;


Revision tags: OPENBSD_3_5_BASE
# 1.47 12-Feb-2004 jmc

some typos and macro simplification;


# 1.46 31-Jan-2004 jmc

make references to USD docs clearer;


# 1.45 13-Dec-2003 jmc

sort options, and adjust -width of options' list;


# 1.44 25-Sep-2003 jmc

replace .Em with more appropriate macros. some other cleanup;


Revision tags: OPENBSD_3_4_BASE
# 1.43 02-Sep-2003 jmc

escape punctuation;
ok deraadt@


# 1.42 27-Jul-2003 jmc

USD docs for ed are 9-10, not 12,13;


# 1.41 29-May-2003 jmc

- section reorder
- correct macro
- escape some whitespace


# 1.40 28-Apr-2003 jmc

typos;

suggestions, corrections and ok millert@


Revision tags: OPENBSD_3_3_BASE
# 1.39 18-Feb-2003 jmc

copyrights added;

ed(1): Andrew Moore
patch(1): Larry Wall (thanks espie@ for help with this one)
units(1): Adrian Mariano


# 1.38 04-Oct-2002 deraadt

wrong word; cjeker@diehard.n-r-g.com


Revision tags: OPENBSD_3_2_BASE
# 1.37 31-Aug-2002 mpech

Unbreak. We have situations where last space in the line is required.
From dfa@openbsd.ru


Revision tags: OPENBSD_3_1_BASE
# 1.36 17-Feb-2002 millert

Mention deprecated '-' flag (same as -s) since it is listed in the
SYNOPSIS.


# 1.35 21-Dec-2001 mpech

Initial patch for a new mdoc issue.
Powered by @mantoya:
o) kill extra line in the end of file;
o) kill extra space in the end of line;
o) replace blank lines with .Pp;

millert@ ok


# 1.34 13-Nov-2001 mpech

o) start new sentence on a new line;
o) don't use .Pp before/after .Ss;
o) wrap long lines;
o) fix bogus .Xr usage;

millert@ ok;


Revision tags: OPENBSD_3_0_BASE
# 1.33 20-Jul-2001 mpech

we don't like:
o) .Pp before/after .Sh;
o) .Pp before/after .Rs/.Re;
o) .Nm without argument in SYNOPSIS;


# 1.32 23-Jun-2001 deraadt

ok, tmac is now fixed


# 1.31 23-Jun-2001 deraadt

join .%A entries; most by bk@rt.fm


# 1.30 28-May-2001 aaron

Various fixes; mpech@prosoft.org.lv


Revision tags: OPENBSD_2_9_BASE
# 1.29 09-Nov-2000 aaron

- Some section shuffling: conform to the standard order documented in mdoc(7)
- .Sh AUTHOR -> .Sh AUTHORS


# 1.28 09-Nov-2000 aaron

Insert some missing commas.


Revision tags: OPENBSD_2_8_BASE
# 1.27 06-Oct-2000 aaron

- Get rid of more short lines.
- Fix a formatting error I missed in the last commit.


# 1.26 06-Oct-2000 aaron

- Fix numerous formatting glitches.
- Convert plain reference to an mdoc macro'd reference.
- Get rid of some annoying short lines, which make the man src hard to read.
- parenthesis -> parentheses


Revision tags: OPENBSD_2_7_BASE
# 1.25 23-Apr-2000 aaron

Some fixups.


# 1.24 21-Apr-2000 aaron

Don't hyphenate the words {left|right}most.


# 1.23 15-Apr-2000 aaron

Mostly punctuation fixes.


# 1.22 21-Mar-2000 aaron

Add HISTORY sections; from FreeBSD. Information originally obtained from
"A Quarter Centry of UNIX, Peter H. Salus, Page 41".


# 1.21 17-Mar-2000 aaron

Remove hard sentence breaks.


Revision tags: OPENBSD_2_6_BASE
# 1.20 04-Jul-1999 aaron

trash some old leftover macros and replace them with -mdoc macros


# 1.19 04-Jun-1999 aaron

start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@


# 1.18 23-May-1999 aaron

remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com


Revision tags: OPENBSD_2_5_BASE
# 1.17 01-Mar-1999 aaron

fix a command sequence description; d@, also some misc cleanup


# 1.16 15-Dec-1998 aaron

always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.net


# 1.15 28-Nov-1998 aaron

start killing redundant .Nm macro arguments (mandoc ``remembers'' the first one
it's given)


# 1.14 06-Nov-1998 aaron

use .Dq/.Sq macros instead of `` ''s and ` 's (think typesetting and future
processing); kill redundant .Pp macros; other misc fixes


Revision tags: OPENBSD_2_4_BASE
# 1.13 23-Sep-1998 aaron

alphabetize SEE ALSO entries and numerically order according to section


# 1.12 14-Sep-1998 aaron

First complete sweep of man pages, bin/. Command/function names previously
(incorrectly) capatilized are fixed. Comma splices, hyphenations, SYNOPSIS
cleanups, other miscellaneous typos.


# 1.11 01-Sep-1998 deraadt

more man page fixes; aaron@ug.cs.dal.ca


# 1.10 21-Jul-1998 deraadt

fix +n description; jkoshy@freebsd


Revision tags: OPENBSD_2_3_BASE
# 1.9 02-Jan-1998 deraadt

man page error; helbig


Revision tags: OPENBSD_2_2_BASE
# 1.8 30-Aug-1997 deraadt

minor errors; josh@quick.net


# 1.7 04-Aug-1997 deraadt

bad Ns


# 1.6 04-Aug-1997 deraadt

more Ns


# 1.5 03-Aug-1997 deraadt

oops. ok, why does my footer not show up yet??


# 1.4 03-Aug-1997 deraadt

roughly 3 hours of slaving results in a much more beautiful mdoc man page.


Revision tags: OPENBSD_2_1_BASE
# 1.3 10-Dec-1996 deraadt

"the the" purge


Revision tags: OPENBSD_2_0_BASE
# 1.2 23-Jun-1996 deraadt

update rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.71 10-Jul-2019 jmc

document the dropping of the second / and ? in line address REs;
thread started by mazocomp; diff from ropers, shortened by me;

ok martijn schwarze


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.70 26-Apr-2018 martijn

Make ed's 'l' command end lines with a '$' and make sure that literal
'$' characters are escaped, so that we are POSIX compliant.

The omission of trailing '$' was originally hidden behind a BACKWARDS
flag. This flag was most likely introduced to be compatible with 4.4BSD.
Thanks to naddy@ for pointing me to the 4.4BSD ed implementation.

I tried to trace the origin and enabling of the BACKWARDS flag, since
both FreeBSD and NetBSD have the flag, but only FreeBSD doesn't have it
enabled. Both projects had an alm@ working on ed during 1993-1995 during
which he added this flag to both projects and only enabled it on NetBSD,
but I wasn't able to reach him on any known address.
Thanks to Ed Schouten (ed@freebsd), and Michael W. Lucas of the ed
Mastery book for helping me trying to locate Andrew Moore.

Problem originally prodded by garzon.lucero@gmail.com and later
independently re-requested by n.reusse@hxgn.net.

OK tb@, guenther@, and mwl@mwl.io


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.69 05-Jul-2017 schwarze

nits about trailing punctuation found with mandoc -Tlint


Revision tags: OPENBSD_6_1_BASE
# 1.68 23-Sep-2016 jmc

remove the note about the list command (l) displaying a --More--
prompt for huge lines (according to otto this happens only when
BACKWARDS is not defined);

ok otto


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.67 20-Nov-2015 tb

honestly i think you should just zap that paragraph - it doesn;t make
sense to document that posix more or less says something should happen,
and that it does.

jmc


# 1.66 20-Nov-2015 tb

make ed restore the user defined prompt (specified with -p) when it was turned
off and then on again with 'P'.

ok daniel@


# 1.65 14-Sep-2015 schwarze

Avoid .Ns right after .Pf, it's pointless.
In some cases, do additional cleanup in the immediate vicinity.


Revision tags: OPENBSD_5_8_BASE
# 1.64 22-Jun-2015 jmc

theo buehler points out that posix specifies a prompt defined using -p
be reinstated when toggled off then on again; this seems to make sense,
but posix is not explicit.

we know that gnu ed and freebsd do reinstate the user defined prompt, but
we do not. no one has yet stepped up to change this, so i'm adding a note
to this effect until such a time as we do/

i have not tweaked the text for -p or "P" to allow for an easy back out
if behaviour does change;


Revision tags: OPENBSD_5_7_BASE
# 1.63 04-Dec-2014 daniel

document some more commands that are POSIX extensions. ok jmc@


# 1.62 26-Nov-2014 jmc

document in STANDARDS that we do not mark eols with $;
originally reported by ezequiel garz?n


Revision tags: OPENBSD_5_6_BASE
# 1.61 14-Apr-2014 jmc

more x removal;


# 1.60 14-Apr-2014 tedu

remove nonstandard DES support because DES. ok beck deraadt miod


# 1.59 06-Mar-2014 jmc

add an ASYNCHRONOUS EVENTS section for signals, as per vi;
ok millert


Revision tags: OPENBSD_5_5_BASE
# 1.58 22-Feb-2014 jmc

STANDARDS:
- `%' is an extension
- `^' is neither required nor prohibited by posix
- the deprecated `-' option is "behaviour unspecified"

ok millert


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.57 03-Sep-2010 jmc

add an EXIT STATUS section for /bin;


Revision tags: OPENBSD_4_8_BASE
# 1.56 27-Jul-2010 jmc

properly escape some "!"; reported by kristaps


# 1.55 22-Jul-2010 jmc

move exit returns blurb out of DIAGNOSTICS; from daniel dickman


Revision tags: OPENBSD_4_7_BASE
# 1.54 10-Jan-2010 jmc

remove references to docs we no longer install;


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.53 08-Feb-2009 jmc

bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few
updates to follow;


# 1.52 01-Oct-2008 jmc

for the `g' and `G' commands, document that if no lines match
the regular expression then the current line number remains unchanged;


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.51 31-May-2007 jmc

convert to new .Dd format;


# 1.50 29-May-2007 jmc

- consistent STANDARDS blurb
- note which options are extensions to POSIX

discussed w/ deraadt otto millert


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.49 04-Oct-2004 jmc

remove the section on regular expressions - instead point people
to re_format.7 (which is where the list of BREs went);

also, rename LIMITATIONS to CAVEATS, as this is a standard mdoc thing,
and shuffle it to the end of the page;


Revision tags: OPENBSD_3_6_BASE
# 1.48 19-Apr-2004 jmc

correct path to usd docs;


Revision tags: OPENBSD_3_5_BASE
# 1.47 12-Feb-2004 jmc

some typos and macro simplification;


# 1.46 31-Jan-2004 jmc

make references to USD docs clearer;


# 1.45 13-Dec-2003 jmc

sort options, and adjust -width of options' list;


# 1.44 25-Sep-2003 jmc

replace .Em with more appropriate macros. some other cleanup;


Revision tags: OPENBSD_3_4_BASE
# 1.43 02-Sep-2003 jmc

escape punctuation;
ok deraadt@


# 1.42 27-Jul-2003 jmc

USD docs for ed are 9-10, not 12,13;


# 1.41 29-May-2003 jmc

- section reorder
- correct macro
- escape some whitespace


# 1.40 28-Apr-2003 jmc

typos;

suggestions, corrections and ok millert@


Revision tags: OPENBSD_3_3_BASE
# 1.39 18-Feb-2003 jmc

copyrights added;

ed(1): Andrew Moore
patch(1): Larry Wall (thanks espie@ for help with this one)
units(1): Adrian Mariano


# 1.38 04-Oct-2002 deraadt

wrong word; cjeker@diehard.n-r-g.com


Revision tags: OPENBSD_3_2_BASE
# 1.37 31-Aug-2002 mpech

Unbreak. We have situations where last space in the line is required.
From dfa@openbsd.ru


Revision tags: OPENBSD_3_1_BASE
# 1.36 17-Feb-2002 millert

Mention deprecated '-' flag (same as -s) since it is listed in the
SYNOPSIS.


# 1.35 21-Dec-2001 mpech

Initial patch for a new mdoc issue.
Powered by @mantoya:
o) kill extra line in the end of file;
o) kill extra space in the end of line;
o) replace blank lines with .Pp;

millert@ ok


# 1.34 13-Nov-2001 mpech

o) start new sentence on a new line;
o) don't use .Pp before/after .Ss;
o) wrap long lines;
o) fix bogus .Xr usage;

millert@ ok;


Revision tags: OPENBSD_3_0_BASE
# 1.33 20-Jul-2001 mpech

we don't like:
o) .Pp before/after .Sh;
o) .Pp before/after .Rs/.Re;
o) .Nm without argument in SYNOPSIS;


# 1.32 23-Jun-2001 deraadt

ok, tmac is now fixed


# 1.31 23-Jun-2001 deraadt

join .%A entries; most by bk@rt.fm


# 1.30 28-May-2001 aaron

Various fixes; mpech@prosoft.org.lv


Revision tags: OPENBSD_2_9_BASE
# 1.29 09-Nov-2000 aaron

- Some section shuffling: conform to the standard order documented in mdoc(7)
- .Sh AUTHOR -> .Sh AUTHORS


# 1.28 09-Nov-2000 aaron

Insert some missing commas.


Revision tags: OPENBSD_2_8_BASE
# 1.27 06-Oct-2000 aaron

- Get rid of more short lines.
- Fix a formatting error I missed in the last commit.


# 1.26 06-Oct-2000 aaron

- Fix numerous formatting glitches.
- Convert plain reference to an mdoc macro'd reference.
- Get rid of some annoying short lines, which make the man src hard to read.
- parenthesis -> parentheses


Revision tags: OPENBSD_2_7_BASE
# 1.25 23-Apr-2000 aaron

Some fixups.


# 1.24 21-Apr-2000 aaron

Don't hyphenate the words {left|right}most.


# 1.23 15-Apr-2000 aaron

Mostly punctuation fixes.


# 1.22 21-Mar-2000 aaron

Add HISTORY sections; from FreeBSD. Information originally obtained from
"A Quarter Centry of UNIX, Peter H. Salus, Page 41".


# 1.21 17-Mar-2000 aaron

Remove hard sentence breaks.


Revision tags: OPENBSD_2_6_BASE
# 1.20 04-Jul-1999 aaron

trash some old leftover macros and replace them with -mdoc macros


# 1.19 04-Jun-1999 aaron

start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@


# 1.18 23-May-1999 aaron

remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com


Revision tags: OPENBSD_2_5_BASE
# 1.17 01-Mar-1999 aaron

fix a command sequence description; d@, also some misc cleanup


# 1.16 15-Dec-1998 aaron

always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.net


# 1.15 28-Nov-1998 aaron

start killing redundant .Nm macro arguments (mandoc ``remembers'' the first one
it's given)


# 1.14 06-Nov-1998 aaron

use .Dq/.Sq macros instead of `` ''s and ` 's (think typesetting and future
processing); kill redundant .Pp macros; other misc fixes


Revision tags: OPENBSD_2_4_BASE
# 1.13 23-Sep-1998 aaron

alphabetize SEE ALSO entries and numerically order according to section


# 1.12 14-Sep-1998 aaron

First complete sweep of man pages, bin/. Command/function names previously
(incorrectly) capatilized are fixed. Comma splices, hyphenations, SYNOPSIS
cleanups, other miscellaneous typos.


# 1.11 01-Sep-1998 deraadt

more man page fixes; aaron@ug.cs.dal.ca


# 1.10 21-Jul-1998 deraadt

fix +n description; jkoshy@freebsd


Revision tags: OPENBSD_2_3_BASE
# 1.9 02-Jan-1998 deraadt

man page error; helbig


Revision tags: OPENBSD_2_2_BASE
# 1.8 30-Aug-1997 deraadt

minor errors; josh@quick.net


# 1.7 04-Aug-1997 deraadt

bad Ns


# 1.6 04-Aug-1997 deraadt

more Ns


# 1.5 03-Aug-1997 deraadt

oops. ok, why does my footer not show up yet??


# 1.4 03-Aug-1997 deraadt

roughly 3 hours of slaving results in a much more beautiful mdoc man page.


Revision tags: OPENBSD_2_1_BASE
# 1.3 10-Dec-1996 deraadt

"the the" purge


Revision tags: OPENBSD_2_0_BASE
# 1.2 23-Jun-1996 deraadt

update rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.70 26-Apr-2018 martijn

Make ed's 'l' command end lines with a '$' and make sure that literal
'$' characters are escaped, so that we are POSIX compliant.

The omission of trailing '$' was originally hidden behind a BACKWARDS
flag. This flag was most likely introduced to be compatible with 4.4BSD.
Thanks to naddy@ for pointing me to the 4.4BSD ed implementation.

I tried to trace the origin and enabling of the BACKWARDS flag, since
both FreeBSD and NetBSD have the flag, but only FreeBSD doesn't have it
enabled. Both projects had an alm@ working on ed during 1993-1995 during
which he added this flag to both projects and only enabled it on NetBSD,
but I wasn't able to reach him on any known address.
Thanks to Ed Schouten (ed@freebsd), and Michael W. Lucas of the ed
Mastery book for helping me trying to locate Andrew Moore.

Problem originally prodded by garzon.lucero@gmail.com and later
independently re-requested by n.reusse@hxgn.net.

OK tb@, guenther@, and mwl@mwl.io


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.69 05-Jul-2017 schwarze

nits about trailing punctuation found with mandoc -Tlint


Revision tags: OPENBSD_6_1_BASE
# 1.68 23-Sep-2016 jmc

remove the note about the list command (l) displaying a --More--
prompt for huge lines (according to otto this happens only when
BACKWARDS is not defined);

ok otto


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.67 20-Nov-2015 tb

honestly i think you should just zap that paragraph - it doesn;t make
sense to document that posix more or less says something should happen,
and that it does.

jmc


# 1.66 20-Nov-2015 tb

make ed restore the user defined prompt (specified with -p) when it was turned
off and then on again with 'P'.

ok daniel@


# 1.65 14-Sep-2015 schwarze

Avoid .Ns right after .Pf, it's pointless.
In some cases, do additional cleanup in the immediate vicinity.


Revision tags: OPENBSD_5_8_BASE
# 1.64 22-Jun-2015 jmc

theo buehler points out that posix specifies a prompt defined using -p
be reinstated when toggled off then on again; this seems to make sense,
but posix is not explicit.

we know that gnu ed and freebsd do reinstate the user defined prompt, but
we do not. no one has yet stepped up to change this, so i'm adding a note
to this effect until such a time as we do/

i have not tweaked the text for -p or "P" to allow for an easy back out
if behaviour does change;


Revision tags: OPENBSD_5_7_BASE
# 1.63 04-Dec-2014 daniel

document some more commands that are POSIX extensions. ok jmc@


# 1.62 26-Nov-2014 jmc

document in STANDARDS that we do not mark eols with $;
originally reported by ezequiel garz?n


Revision tags: OPENBSD_5_6_BASE
# 1.61 14-Apr-2014 jmc

more x removal;


# 1.60 14-Apr-2014 tedu

remove nonstandard DES support because DES. ok beck deraadt miod


# 1.59 06-Mar-2014 jmc

add an ASYNCHRONOUS EVENTS section for signals, as per vi;
ok millert


Revision tags: OPENBSD_5_5_BASE
# 1.58 22-Feb-2014 jmc

STANDARDS:
- `%' is an extension
- `^' is neither required nor prohibited by posix
- the deprecated `-' option is "behaviour unspecified"

ok millert


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.57 03-Sep-2010 jmc

add an EXIT STATUS section for /bin;


Revision tags: OPENBSD_4_8_BASE
# 1.56 27-Jul-2010 jmc

properly escape some "!"; reported by kristaps


# 1.55 22-Jul-2010 jmc

move exit returns blurb out of DIAGNOSTICS; from daniel dickman


Revision tags: OPENBSD_4_7_BASE
# 1.54 10-Jan-2010 jmc

remove references to docs we no longer install;


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.53 08-Feb-2009 jmc

bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few
updates to follow;


# 1.52 01-Oct-2008 jmc

for the `g' and `G' commands, document that if no lines match
the regular expression then the current line number remains unchanged;


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.51 31-May-2007 jmc

convert to new .Dd format;


# 1.50 29-May-2007 jmc

- consistent STANDARDS blurb
- note which options are extensions to POSIX

discussed w/ deraadt otto millert


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.49 04-Oct-2004 jmc

remove the section on regular expressions - instead point people
to re_format.7 (which is where the list of BREs went);

also, rename LIMITATIONS to CAVEATS, as this is a standard mdoc thing,
and shuffle it to the end of the page;


Revision tags: OPENBSD_3_6_BASE
# 1.48 19-Apr-2004 jmc

correct path to usd docs;


Revision tags: OPENBSD_3_5_BASE
# 1.47 12-Feb-2004 jmc

some typos and macro simplification;


# 1.46 31-Jan-2004 jmc

make references to USD docs clearer;


# 1.45 13-Dec-2003 jmc

sort options, and adjust -width of options' list;


# 1.44 25-Sep-2003 jmc

replace .Em with more appropriate macros. some other cleanup;


Revision tags: OPENBSD_3_4_BASE
# 1.43 02-Sep-2003 jmc

escape punctuation;
ok deraadt@


# 1.42 27-Jul-2003 jmc

USD docs for ed are 9-10, not 12,13;


# 1.41 29-May-2003 jmc

- section reorder
- correct macro
- escape some whitespace


# 1.40 28-Apr-2003 jmc

typos;

suggestions, corrections and ok millert@


Revision tags: OPENBSD_3_3_BASE
# 1.39 18-Feb-2003 jmc

copyrights added;

ed(1): Andrew Moore
patch(1): Larry Wall (thanks espie@ for help with this one)
units(1): Adrian Mariano


# 1.38 04-Oct-2002 deraadt

wrong word; cjeker@diehard.n-r-g.com


Revision tags: OPENBSD_3_2_BASE
# 1.37 31-Aug-2002 mpech

Unbreak. We have situations where last space in the line is required.
From dfa@openbsd.ru


Revision tags: OPENBSD_3_1_BASE
# 1.36 17-Feb-2002 millert

Mention deprecated '-' flag (same as -s) since it is listed in the
SYNOPSIS.


# 1.35 21-Dec-2001 mpech

Initial patch for a new mdoc issue.
Powered by @mantoya:
o) kill extra line in the end of file;
o) kill extra space in the end of line;
o) replace blank lines with .Pp;

millert@ ok


# 1.34 13-Nov-2001 mpech

o) start new sentence on a new line;
o) don't use .Pp before/after .Ss;
o) wrap long lines;
o) fix bogus .Xr usage;

millert@ ok;


Revision tags: OPENBSD_3_0_BASE
# 1.33 20-Jul-2001 mpech

we don't like:
o) .Pp before/after .Sh;
o) .Pp before/after .Rs/.Re;
o) .Nm without argument in SYNOPSIS;


# 1.32 23-Jun-2001 deraadt

ok, tmac is now fixed


# 1.31 23-Jun-2001 deraadt

join .%A entries; most by bk@rt.fm


# 1.30 28-May-2001 aaron

Various fixes; mpech@prosoft.org.lv


Revision tags: OPENBSD_2_9_BASE
# 1.29 09-Nov-2000 aaron

- Some section shuffling: conform to the standard order documented in mdoc(7)
- .Sh AUTHOR -> .Sh AUTHORS


# 1.28 09-Nov-2000 aaron

Insert some missing commas.


Revision tags: OPENBSD_2_8_BASE
# 1.27 06-Oct-2000 aaron

- Get rid of more short lines.
- Fix a formatting error I missed in the last commit.


# 1.26 06-Oct-2000 aaron

- Fix numerous formatting glitches.
- Convert plain reference to an mdoc macro'd reference.
- Get rid of some annoying short lines, which make the man src hard to read.
- parenthesis -> parentheses


Revision tags: OPENBSD_2_7_BASE
# 1.25 23-Apr-2000 aaron

Some fixups.


# 1.24 21-Apr-2000 aaron

Don't hyphenate the words {left|right}most.


# 1.23 15-Apr-2000 aaron

Mostly punctuation fixes.


# 1.22 21-Mar-2000 aaron

Add HISTORY sections; from FreeBSD. Information originally obtained from
"A Quarter Centry of UNIX, Peter H. Salus, Page 41".


# 1.21 17-Mar-2000 aaron

Remove hard sentence breaks.


Revision tags: OPENBSD_2_6_BASE
# 1.20 04-Jul-1999 aaron

trash some old leftover macros and replace them with -mdoc macros


# 1.19 04-Jun-1999 aaron

start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@


# 1.18 23-May-1999 aaron

remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com


Revision tags: OPENBSD_2_5_BASE
# 1.17 01-Mar-1999 aaron

fix a command sequence description; d@, also some misc cleanup


# 1.16 15-Dec-1998 aaron

always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.net


# 1.15 28-Nov-1998 aaron

start killing redundant .Nm macro arguments (mandoc ``remembers'' the first one
it's given)


# 1.14 06-Nov-1998 aaron

use .Dq/.Sq macros instead of `` ''s and ` 's (think typesetting and future
processing); kill redundant .Pp macros; other misc fixes


Revision tags: OPENBSD_2_4_BASE
# 1.13 23-Sep-1998 aaron

alphabetize SEE ALSO entries and numerically order according to section


# 1.12 14-Sep-1998 aaron

First complete sweep of man pages, bin/. Command/function names previously
(incorrectly) capatilized are fixed. Comma splices, hyphenations, SYNOPSIS
cleanups, other miscellaneous typos.


# 1.11 01-Sep-1998 deraadt

more man page fixes; aaron@ug.cs.dal.ca


# 1.10 21-Jul-1998 deraadt

fix +n description; jkoshy@freebsd


Revision tags: OPENBSD_2_3_BASE
# 1.9 02-Jan-1998 deraadt

man page error; helbig


Revision tags: OPENBSD_2_2_BASE
# 1.8 30-Aug-1997 deraadt

minor errors; josh@quick.net


# 1.7 04-Aug-1997 deraadt

bad Ns


# 1.6 04-Aug-1997 deraadt

more Ns


# 1.5 03-Aug-1997 deraadt

oops. ok, why does my footer not show up yet??


# 1.4 03-Aug-1997 deraadt

roughly 3 hours of slaving results in a much more beautiful mdoc man page.


Revision tags: OPENBSD_2_1_BASE
# 1.3 10-Dec-1996 deraadt

"the the" purge


Revision tags: OPENBSD_2_0_BASE
# 1.2 23-Jun-1996 deraadt

update rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_2_BASE
# 1.69 05-Jul-2017 schwarze

nits about trailing punctuation found with mandoc -Tlint


Revision tags: OPENBSD_6_1_BASE
# 1.68 23-Sep-2016 jmc

remove the note about the list command (l) displaying a --More--
prompt for huge lines (according to otto this happens only when
BACKWARDS is not defined);

ok otto


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.67 20-Nov-2015 tb

honestly i think you should just zap that paragraph - it doesn;t make
sense to document that posix more or less says something should happen,
and that it does.

jmc


# 1.66 20-Nov-2015 tb

make ed restore the user defined prompt (specified with -p) when it was turned
off and then on again with 'P'.

ok daniel@


# 1.65 14-Sep-2015 schwarze

Avoid .Ns right after .Pf, it's pointless.
In some cases, do additional cleanup in the immediate vicinity.


Revision tags: OPENBSD_5_8_BASE
# 1.64 22-Jun-2015 jmc

theo buehler points out that posix specifies a prompt defined using -p
be reinstated when toggled off then on again; this seems to make sense,
but posix is not explicit.

we know that gnu ed and freebsd do reinstate the user defined prompt, but
we do not. no one has yet stepped up to change this, so i'm adding a note
to this effect until such a time as we do/

i have not tweaked the text for -p or "P" to allow for an easy back out
if behaviour does change;


Revision tags: OPENBSD_5_7_BASE
# 1.63 04-Dec-2014 daniel

document some more commands that are POSIX extensions. ok jmc@


# 1.62 26-Nov-2014 jmc

document in STANDARDS that we do not mark eols with $;
originally reported by ezequiel garz?n


Revision tags: OPENBSD_5_6_BASE
# 1.61 14-Apr-2014 jmc

more x removal;


# 1.60 14-Apr-2014 tedu

remove nonstandard DES support because DES. ok beck deraadt miod


# 1.59 06-Mar-2014 jmc

add an ASYNCHRONOUS EVENTS section for signals, as per vi;
ok millert


Revision tags: OPENBSD_5_5_BASE
# 1.58 22-Feb-2014 jmc

STANDARDS:
- `%' is an extension
- `^' is neither required nor prohibited by posix
- the deprecated `-' option is "behaviour unspecified"

ok millert


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.57 03-Sep-2010 jmc

add an EXIT STATUS section for /bin;


Revision tags: OPENBSD_4_8_BASE
# 1.56 27-Jul-2010 jmc

properly escape some "!"; reported by kristaps


# 1.55 22-Jul-2010 jmc

move exit returns blurb out of DIAGNOSTICS; from daniel dickman


Revision tags: OPENBSD_4_7_BASE
# 1.54 10-Jan-2010 jmc

remove references to docs we no longer install;


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.53 08-Feb-2009 jmc

bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few
updates to follow;


# 1.52 01-Oct-2008 jmc

for the `g' and `G' commands, document that if no lines match
the regular expression then the current line number remains unchanged;


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.51 31-May-2007 jmc

convert to new .Dd format;


# 1.50 29-May-2007 jmc

- consistent STANDARDS blurb
- note which options are extensions to POSIX

discussed w/ deraadt otto millert


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.49 04-Oct-2004 jmc

remove the section on regular expressions - instead point people
to re_format.7 (which is where the list of BREs went);

also, rename LIMITATIONS to CAVEATS, as this is a standard mdoc thing,
and shuffle it to the end of the page;


Revision tags: OPENBSD_3_6_BASE
# 1.48 19-Apr-2004 jmc

correct path to usd docs;


Revision tags: OPENBSD_3_5_BASE
# 1.47 12-Feb-2004 jmc

some typos and macro simplification;


# 1.46 31-Jan-2004 jmc

make references to USD docs clearer;


# 1.45 13-Dec-2003 jmc

sort options, and adjust -width of options' list;


# 1.44 25-Sep-2003 jmc

replace .Em with more appropriate macros. some other cleanup;


Revision tags: OPENBSD_3_4_BASE
# 1.43 02-Sep-2003 jmc

escape punctuation;
ok deraadt@


# 1.42 27-Jul-2003 jmc

USD docs for ed are 9-10, not 12,13;


# 1.41 29-May-2003 jmc

- section reorder
- correct macro
- escape some whitespace


# 1.40 28-Apr-2003 jmc

typos;

suggestions, corrections and ok millert@


Revision tags: OPENBSD_3_3_BASE
# 1.39 18-Feb-2003 jmc

copyrights added;

ed(1): Andrew Moore
patch(1): Larry Wall (thanks espie@ for help with this one)
units(1): Adrian Mariano


# 1.38 04-Oct-2002 deraadt

wrong word; cjeker@diehard.n-r-g.com


Revision tags: OPENBSD_3_2_BASE
# 1.37 31-Aug-2002 mpech

Unbreak. We have situations where last space in the line is required.
From dfa@openbsd.ru


Revision tags: OPENBSD_3_1_BASE
# 1.36 17-Feb-2002 millert

Mention deprecated '-' flag (same as -s) since it is listed in the
SYNOPSIS.


# 1.35 21-Dec-2001 mpech

Initial patch for a new mdoc issue.
Powered by @mantoya:
o) kill extra line in the end of file;
o) kill extra space in the end of line;
o) replace blank lines with .Pp;

millert@ ok


# 1.34 13-Nov-2001 mpech

o) start new sentence on a new line;
o) don't use .Pp before/after .Ss;
o) wrap long lines;
o) fix bogus .Xr usage;

millert@ ok;


Revision tags: OPENBSD_3_0_BASE
# 1.33 20-Jul-2001 mpech

we don't like:
o) .Pp before/after .Sh;
o) .Pp before/after .Rs/.Re;
o) .Nm without argument in SYNOPSIS;


# 1.32 23-Jun-2001 deraadt

ok, tmac is now fixed


# 1.31 23-Jun-2001 deraadt

join .%A entries; most by bk@rt.fm


# 1.30 28-May-2001 aaron

Various fixes; mpech@prosoft.org.lv


Revision tags: OPENBSD_2_9_BASE
# 1.29 09-Nov-2000 aaron

- Some section shuffling: conform to the standard order documented in mdoc(7)
- .Sh AUTHOR -> .Sh AUTHORS


# 1.28 09-Nov-2000 aaron

Insert some missing commas.


Revision tags: OPENBSD_2_8_BASE
# 1.27 06-Oct-2000 aaron

- Get rid of more short lines.
- Fix a formatting error I missed in the last commit.


# 1.26 06-Oct-2000 aaron

- Fix numerous formatting glitches.
- Convert plain reference to an mdoc macro'd reference.
- Get rid of some annoying short lines, which make the man src hard to read.
- parenthesis -> parentheses


Revision tags: OPENBSD_2_7_BASE
# 1.25 23-Apr-2000 aaron

Some fixups.


# 1.24 21-Apr-2000 aaron

Don't hyphenate the words {left|right}most.


# 1.23 15-Apr-2000 aaron

Mostly punctuation fixes.


# 1.22 21-Mar-2000 aaron

Add HISTORY sections; from FreeBSD. Information originally obtained from
"A Quarter Centry of UNIX, Peter H. Salus, Page 41".


# 1.21 17-Mar-2000 aaron

Remove hard sentence breaks.


Revision tags: OPENBSD_2_6_BASE
# 1.20 04-Jul-1999 aaron

trash some old leftover macros and replace them with -mdoc macros


# 1.19 04-Jun-1999 aaron

start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@


# 1.18 23-May-1999 aaron

remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com


Revision tags: OPENBSD_2_5_BASE
# 1.17 01-Mar-1999 aaron

fix a command sequence description; d@, also some misc cleanup


# 1.16 15-Dec-1998 aaron

always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.net


# 1.15 28-Nov-1998 aaron

start killing redundant .Nm macro arguments (mandoc ``remembers'' the first one
it's given)


# 1.14 06-Nov-1998 aaron

use .Dq/.Sq macros instead of `` ''s and ` 's (think typesetting and future
processing); kill redundant .Pp macros; other misc fixes


Revision tags: OPENBSD_2_4_BASE
# 1.13 23-Sep-1998 aaron

alphabetize SEE ALSO entries and numerically order according to section


# 1.12 14-Sep-1998 aaron

First complete sweep of man pages, bin/. Command/function names previously
(incorrectly) capatilized are fixed. Comma splices, hyphenations, SYNOPSIS
cleanups, other miscellaneous typos.


# 1.11 01-Sep-1998 deraadt

more man page fixes; aaron@ug.cs.dal.ca


# 1.10 21-Jul-1998 deraadt

fix +n description; jkoshy@freebsd


Revision tags: OPENBSD_2_3_BASE
# 1.9 02-Jan-1998 deraadt

man page error; helbig


Revision tags: OPENBSD_2_2_BASE
# 1.8 30-Aug-1997 deraadt

minor errors; josh@quick.net


# 1.7 04-Aug-1997 deraadt

bad Ns


# 1.6 04-Aug-1997 deraadt

more Ns


# 1.5 03-Aug-1997 deraadt

oops. ok, why does my footer not show up yet??


# 1.4 03-Aug-1997 deraadt

roughly 3 hours of slaving results in a much more beautiful mdoc man page.


Revision tags: OPENBSD_2_1_BASE
# 1.3 10-Dec-1996 deraadt

"the the" purge


Revision tags: OPENBSD_2_0_BASE
# 1.2 23-Jun-1996 deraadt

update rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision