source: postlfs/editors/ed.xml@ 0290a023

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 0290a023 was 518538f, checked in by Randy McMurchy <randy@…>, 19 years ago

Standardized the 'Estimated disk space required' text

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

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