GNU ed is an 8-bit clean implementation of the POSIX line-oriented text editor. Ed is the "standard" text editor in the sense that it is the original editor for Unix, and thus widely available. For most purposes, however, it is superseded by full-screen editors such as GNU Emacs or GNU Moe.
| Tags | Text Editors |
|---|---|
| Licenses | GPLv3+ |
| Operating Systems | POSIX |
| Implementation | C |
Recent releases


Release Notes: Ed now shows the "Try 'ed --help' for more information." message if a bad option is given on the command line. Quote characters in messages have been changed as advised by GNU Coding Standards. The "--datadir" configure option has been renamed to "--datarootdir" to follow GNU Standards.


Release Notes: Displaying of null characters by the "l" command has been fixed. The condition deciding when to show the message "Newline appended" has been corrected. The "modified" flag is now set when reading a non-empty file into an empty buffer. An error that prevented using NUL characters in regular expressions has been fixed. Ed now signals an error if it can't create a shell process when executing a shell command. Ed now flushes stdout/stderr before reading a new command. All command-line options are now documented in the man page.


Release Notes: An error which prevented using NUL characters in regular expressions has been fixed. Ed now signals an error if it can't create a shell process when executing a shell command and flushes stdout/stderr before reading a new command. The man page is now generated with "help2man". All commandline options are now documented in the man page. A portability problem on Linux SPARC has been fixed.


Release Notes: Displaying of null characters by the "l" command has been fixed. The condition deciding when to show the message "Newline appended" has been corrected. The "modified" flag is now set when reading a non-empty file into an empty buffer.


Release Notes: The "a", "c" and "i" commands have been fixed. (When used in a global command list, the commands following them in the list were ignored). The "e" command has been fixed. (It quitted when invoked a second time with a modified buffer). The new option "--restricted" has been added. "red" has been converted to a script invoking "ed --restricted". The description of ed in the manual has been changed. Obsolete POSIX tests have been removed from the testsuite.
Recent comments
30 Mar 2012 07:03
Really good editor for Unix
23 Aug 2008 01:10
don't be so self deprecating!
Maybe the about section shouldn't be so self deprecating.
There are many good reasons still to have a decent line editor available on all systems. Some of those could be described instead of worrying about the other tools that don't really compare.
01 Jun 2007 17:39
Re: errors in ed-0.4
> there are a couple of glaring errors in signal.c:
Both errors will be fixed in version 0.6.
Next time, please use the mailing list to notify errors. Thanks.
17 Feb 2007 19:53
errors in ed-0.4
I'm sure Antonio Diaz means well, but there are a couple of glaring errors in signal.c:
In sigwinch_handler(), there is an executable statement before a declaration (when TIOCGWINSZ is defined). That works in C++, but not in C.
In set_signal(), the non-standard flag SA_RESTART is used. This should be conditionalized, as it is not supported on all flavours of Unix (including QNX Neutrino); POSIX does not in fact require it to be defined.
12 Jun 2002 23:15
excellent.
This is quite possibly one of the coolest projects I've ever seen announced on Freshmeat.