source: postlfs/editors/ed.xml@ d4afab2

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since d4afab2 was d4afab2, checked in by Randy McMurchy <randy@…>, 19 years ago

Added md5sums to Emacs, Ed, nano, Vim and JOE instructions

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3397 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 3.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY ed-download-http "http://ftp.gnu.org/pub/gnu/ed/ed-&ed-version;.tar.gz">
8 <!ENTITY ed-download-ftp "ftp://ftp.gnu.org/pub/gnu/ed/ed-&ed-version;.tar.gz">
9 <!ENTITY ed-md5sum "ddd57463774cae9b50e70cd51221281b">
10 <!ENTITY ed-size "182 KB">
11 <!ENTITY ed-buildsize "3.1 MB">
12 <!ENTITY ed-time "0.10 SBU">
13]>
14
15<sect1 id="ed" xreflabel="Ed-&ed-version;">
16<sect1info>
17<othername>$LastChangedBy$</othername>
18<date>$Date$</date>
19</sect1info>
20<?dbhtml filename="ed.html"?>
21<title>Ed-&ed-version;</title>
22
23<sect2>
24<title>Introduction to <application>Ed</application></title>
25
26<para><application>Ed</application> is a line-oriented text editor. It
27is used to create, display, modify and otherwise manipulate text files,
28both interactively and via shell scripts. Ed isn't something which many
29people use. It's described here because it can be used by the patch
30program if you encounter an ed-based patch file. This happens rarely
31because diff-based patches are preferred these days.</para>
32
33<sect3><title>Package information</title>
34<itemizedlist spacing="compact">
35<listitem><para>Download (HTTP):
36<ulink url="&ed-download-http;"/></para></listitem>
37<listitem><para>Download (FTP):
38<ulink url="&ed-download-ftp;"/></para></listitem>
39<listitem><para>Download MD5 sum: &ed-md5sum;</para></listitem>
40<listitem><para>Download size: &ed-size;</para></listitem>
41<listitem><para>Estimated disk space required:
42&ed-buildsize;</para></listitem>
43<listitem><para>Estimated build time:
44&ed-time;</para></listitem></itemizedlist>
45</sect3>
46
47<sect3><title>Additional downloads</title>
48<itemizedlist spacing="compact">
49<listitem><para>Required Patch: <ulink
50url="&patch-root;/ed-&ed-version;-mkstemp-1.patch"/></para></listitem>
51</itemizedlist></sect3>
52
53</sect2>
54
55<sect2>
56<title>Installation of <application>Ed</application></title>
57
58<para><application>Ed</application> normally uses the
59<emphasis>mktemp</emphasis> function to create temporary files in
60<filename class="directory">/tmp</filename>, but this function contains
61a vulnerability (see the section on Temporary Files at
62<ulink url="http://en.tldp.org/HOWTO/Secure-Programs-HOWTO/avoid-race.html"/>).
63Apply the following patch to make <application>Ed</application> use
64<emphasis>mkstemp</emphasis> instead, a secure way to create temporary
65files:</para>
66
67<screen><userinput><command>patch -Np1 -i ../ed-&ed-version;-mkstemp-1.patch</command></userinput></screen>
68
69<para>Install <application>Ed</application> by running the following
70commands:</para>
71
72<screen><userinput><command>./configure --prefix=/usr --exec-prefix="" &amp;&amp;
73make &amp;&amp;
74make install</command></userinput></screen>
75
76</sect2>
77
78<sect2>
79<title>Command explanations</title>
80
81<para><parameter>--exec-prefix=""</parameter>: This forces the programs
82to be installed into the <filename class="directory">/bin</filename>
83directory. Having the programs available there is useful in the event of
84the <filename class="directory">/usr</filename> partition being
85unavailable.</para>
86
87</sect2>
88
89<sect2>
90<title>Contents</title>
91
92<para>The <application>Ed</application> package contains
93<command>ed</command> and
94<command>red</command>.</para>
95
96</sect2>
97
98<sect2><title>Description</title>
99
100<sect3><title>ed</title>
101<para><command>ed</command>
102is a line-oriented text editor.
103</para></sect3>
104
105<sect3><title>red</title>
106<para><command>red</command>
107is a restricted ed&mdash;it can only edit files in the current directory
108and cannot execute shell commands.
109</para></sect3>
110
111</sect2>
112
113</sect1>
Note: See TracBrowser for help on using the repository browser.