%general-entities; ]> Ed-&ed-version; Introduction to <application>Ed</application> 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. Package information Download (HTTP): Download (FTP): Download size: &ed-size; Estimated Disk space required: &ed-buildsize; Estimated build time: &ed-time; Additional downloads Required Patch: Installation of <application>Ed</application> 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 ). Apply the following patch to make Ed use mkstemp instead, a secure way to create temporary files: patch -Np1 -i ../ed-&ed-version;-mkstemp.patch Now prepare Ed for compilation: ./configure --prefix=/usr --exec-prefix="" Compile the package: make To test the results, issue: make check. Install the package: make install Command explanations --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. Contents The Ed package contains ed and red (link to ed). Description ed ed is a line-oriented text editor. red red is a restricted ed—it can only edit files in the current directory and cannot execute shell commands.