2 <title>Installation of Ed</title>
4 <para>Ed isn't something you would personally use. It's installed here
5 because it can be used by the patch program if you encounter an ed-based patch
6 file. This happens rarely because diff-based patches are preferred these
9 <para>Install Ed by running the following commands:</para>
11 <para><screen><userinput>cp buf.c buf.c.backup &&
12 sed 's/int u/int u, sfd/' buf.c.backup | \
13 sed '/.*\*mktemp.*/d' | \
14 sed 's/.*if (mktemp.*/ sfd = mkstemp(sfn);\
15 if ((sfd == -1) || (sfp = fopen (sfn, "w+")) == NULL)/' > buf.c &&
16 ./configure --prefix=/usr &&
18 make install &&
19 mv /usr/bin/ed /usr/bin/red /bin</userinput></screen></para>