Selaa lähdekoodia

Fix broken loops

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/jh/BOOK@8290 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Jeremy Huntwork 18 vuotta sitten
vanhempi
commit
2cddf7e4d6
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 2 2
      chapter05/gzip.xml
  2. 1 1
      chapter06/gzip.xml

+ 2 - 2
chapter05/gzip.xml

@@ -41,9 +41,9 @@
     by Gzip is incompatible with the version that current
     Glibc provides, so we'll rename the function:</para>
 
-<screen><userinput>for file gzip.c lib/utimens.{c,h} ; do \
+<screen><userinput>for file in gzip.c lib/utimens.{c,h} ; do \
    cp -v $file{,.orig}
-   sed 's/futimens/gl_&amp;' $file.orig &gt; $file
+   sed 's/futimens/gl_&amp;/' $file.orig &gt; $file
 done</userinput></screen>
 
     <para>Prepare Gzip for compilation:</para>

+ 1 - 1
chapter06/gzip.xml

@@ -39,7 +39,7 @@
     by Gzip is incompatible with the version that current
     Glibc provides, so we'll rename the function:</para>
 
-<screen><userinput>for file gzip.c lib/utimens.{c,h} ; do \
+<screen><userinput>for file in gzip.c lib/utimens.{c,h} ; do \
    cp -v $file{,.orig}
    sed 's/futimens/gl_&amp;/' $file.orig &gt; $file
 done</userinput></screen>