source: postlfs/editors/ed.xml@ cf068ee

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 cf068ee was cf068ee, checked in by Randy McMurchy <randy@…>, 19 years ago

Updated to TeX-3.0; update build entities in the Ed instructions

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

  • Property mode set to 100644
File size: 4.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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 "2.9 MB">
12 <!ENTITY ed-time "0.02 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<indexterm zone="ed"><primary
23sortas="a-Ed">Ed</primary></indexterm>
24
25<sect2>
26<title>Introduction to <application>Ed</application></title>
27
28<para><application>Ed</application> is a line-oriented text editor. It
29is used to create, display, modify and otherwise manipulate text files,
30both interactively and via shell scripts. Ed isn't something which many
31people use. It's described here because it can be used by the patch
32program if you encounter an ed-based patch file. This happens rarely
33because diff-based patches are preferred these days.</para>
34
35<sect3><title>Package information</title>
36<itemizedlist spacing="compact">
37<listitem><para>Download (HTTP):
38<ulink url="&ed-download-http;"/></para></listitem>
39<listitem><para>Download (FTP):
40<ulink url="&ed-download-ftp;"/></para></listitem>
41<listitem><para>Download MD5 sum: &ed-md5sum;</para></listitem>
42<listitem><para>Download size: &ed-size;</para></listitem>
43<listitem><para>Estimated disk space required:
44&ed-buildsize;</para></listitem>
45<listitem><para>Estimated build time:
46&ed-time;</para></listitem></itemizedlist>
47</sect3>
48
49<sect3><title>Additional downloads</title>
50<itemizedlist spacing="compact">
51<listitem><para>Required Patch: <ulink
52url="&patch-root;/ed-&ed-version;-mkstemp-1.patch"/></para></listitem>
53</itemizedlist></sect3>
54
55</sect2>
56
57<sect2>
58<title>Installation of <application>Ed</application></title>
59
60<para><application>Ed</application> normally uses the
61<emphasis>mktemp</emphasis> function to create temporary files in
62<filename class="directory">/tmp</filename>, but this function contains
63a vulnerability (see the section on Temporary Files at
64<ulink url="http://en.tldp.org/HOWTO/Secure-Programs-HOWTO/avoid-race.html"/>).
65Apply the following patch to make <application>Ed</application> use
66<emphasis>mkstemp</emphasis> instead, a secure way to create temporary
67files:</para>
68
69<screen><userinput><command>patch -Np1 -i ../ed-&ed-version;-mkstemp-1.patch</command></userinput></screen>
70
71<para>Install <application>Ed</application> by running the following
72commands:</para>
73
74<screen><userinput><command>./configure --prefix=/usr --exec-prefix="" &amp;&amp;
75make</command></userinput></screen>
76
77<para>Now, as the root user:</para>
78
79<screen><userinput role='root'><command>make install</command></userinput></screen>
80
81</sect2>
82
83<sect2>
84<title>Command explanations</title>
85
86<para><parameter>--exec-prefix=""</parameter>: This forces the programs
87to be installed into the <filename class="directory">/bin</filename>
88directory. Having the programs available there is useful in the event of
89the <filename class="directory">/usr</filename> partition being
90unavailable.</para>
91
92</sect2>
93
94<sect2>
95<title>Contents</title>
96
97<segmentedlist>
98<segtitle>Installed Programs</segtitle>
99<segtitle>Installed Libraries</segtitle>
100<segtitle>Installed Directories</segtitle>
101<seglistitem>
102<seg>ed and red</seg>
103<seg>None</seg>
104<seg>None</seg>
105</seglistitem>
106</segmentedlist>
107
108<variablelist>
109<bridgehead renderas="sect3">Short Descriptions</bridgehead>
110<?dbfo list-presentation="list"?>
111
112<varlistentry id="ed-prog">
113<term><filename>ed</filename></term>
114<listitem><para>is a line-oriented text editor.</para>
115<indexterm zone="ed ed-prog">
116<primary sortas="b-ed">ed</primary></indexterm>
117</listitem>
118</varlistentry>
119
120<varlistentry id="red">
121<term><filename>red</filename></term>
122<listitem><para>is a restricted ed&mdash;it can only edit files in the
123current directory and cannot execute shell commands.</para>
124<indexterm zone="ed red">
125<primary sortas="b-red">red</primary></indexterm>
126</listitem>
127</varlistentry>
128
129</variablelist>
130
131</sect2>
132
133</sect1>
Note: See TracBrowser for help on using the repository browser.