Ed is a line-oriented text editor. It is used to create, display, modify and otherwise manipulate text files, both interactively and via shell scripts. Ed isn't something which many people use. It's described here because it can be used by the patch program if you encounter an ed-based patch file. This happens rarely because diff-based patches are preferred these days.
Ed determines character boundaries incorrectly in multibyte locales. See the Breaks Multibyte Characters section of the Locale Related Issues page for a more general discussion of this problem. Use of Ed in installation instructions for BLFS packages such as teTeX-3.0 is not a problem, as BLFS instructions never use Ed to modify a file containing non-ASCII characters.
Download (HTTP): http://ftp.gnu.org/pub/gnu/ed/ed-0.2.tar.gz
Download (FTP): ftp://ftp.gnu.org/pub/gnu/ed/ed-0.2.tar.gz
Download MD5 sum: ddd57463774cae9b50e70cd51221281b
Download size: 182 KB
Estimated disk space required: 2.9 MB
Estimated build time: 0.02 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/ed
Ed normally uses the mktemp function to create temporary files in /tmp, but this function contains a vulnerability (see the section on Temporary Files at http://en.tldp.org/HOWTO/Secure-Programs-HOWTO/avoid-race.html). Apply the following patch to make Ed use mkstemp instead, a secure way to create temporary files:
patch -Np1 -i ../ed-0.2-mkstemp-2.patch
Install Ed by running the following commands:
./configure --prefix=/usr --exec-prefix="" && make
To test the results, issue: make check.
Now, as the root user:
make install
--exec-prefix="": This forces the programs to be installed into the /bin directory. Having the programs available there is useful in the event of the /usr partition being unavailable.
Last updated on 2007-02-14 17:40:25 -0600