source: postlfs/editors/ed.xml@ f5f7f9d

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 f5f7f9d was 25d03a51, checked in by Larry Lawrence <larry@…>, 19 years ago

made contents consistant

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