diff options
Diffstat (limited to 'chapter06/ed-inst.xml')
-rw-r--r-- | chapter06/ed-inst.xml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/chapter06/ed-inst.xml b/chapter06/ed-inst.xml index e464ed438..ba774a895 100644 --- a/chapter06/ed-inst.xml +++ b/chapter06/ed-inst.xml @@ -8,15 +8,15 @@ need to use ed, you can skip it.</para> <para>Install Ed by running the following commands:</para> -<para><screen><userinput>cp buf.c buf.c.backup &&</userinput> -<userinput>sed 's/int u/int u, sfd/' buf.c.backup | \</userinput> -<userinput> sed '/.*\*mktemp.*/d' | \</userinput> -<userinput> sed 's/.*if (mktemp.*/ sfd = mkstemp(sfn);\</userinput> -<userinput> if ((sfd == -1) || (sfp = fopen (sfn, "w+")) == NULL)/' > buf.c &&</userinput> -<userinput>./configure --prefix=/usr &&</userinput> -<userinput>make &&</userinput> -<userinput>make install &&</userinput> -<userinput>mv /usr/bin/ed /usr/bin/red /bin</userinput></screen></para> +<para><screen><userinput>cp buf.c buf.c.backup && +sed 's/int u/int u, sfd/' buf.c.backup | \ + sed '/.*\*mktemp.*/d' | \ + sed 's/.*if (mktemp.*/ sfd = mkstemp(sfn);\ + if ((sfd == -1) || (sfp = fopen (sfn, "w+")) == NULL)/' > buf.c && +./configure --prefix=/usr && +make && +make install && +mv /usr/bin/ed /usr/bin/red /bin</userinput></screen></para> </sect2> |