From d0d8dc8f4c51b3b2b0bfe2ab233e7419e93250af Mon Sep 17 00:00:00 2001 From: Bryan Kadzban Date: Sat, 23 Sep 2006 00:27:35 +0000 Subject: [PATCH] Changed the notes in sections 7.13.1 and 7.14.1 to be explicit about the lack of quotes around EOF. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7798 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 11 +++++++++++ chapter07/network.xml | 14 ++++++++++---- chapter07/symlinks.xml | 14 ++++++++++---- 3 files changed, 31 insertions(+), 8 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 8752bc34c..cc4930c4a 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -35,6 +35,17 @@ --> + + 2006-09-22 + + + [bryan] - Rewrote the notes in sections 7.12.1 and + 7.13.1 to explicitly mention that the redirections rely + on not quoting EOF. Fixes #1883. + + + + 2006-09-20 diff --git a/chapter07/network.xml b/chapter07/network.xml index ab3590801..2d1881431 100644 --- a/chapter07/network.xml +++ b/chapter07/network.xml @@ -59,10 +59,16 @@ EOF incorrect by default when every distro does this right. --> - Although the examples in this book work properly, be aware - that Udev does not recognize the backslash for line continuation. - If modifying Udev rules with an editor, be sure to leave each rule - on one physical line. + Be aware that Udev does not recognize the backslash for line + continuation. The examples in this book work properly because both + the backslash and newline are ignored by the shell. This makes the + shell send each rule to cat on only one line. (The shell ignores + this sequence because the EOF string used in the here-document + redirection is not enclosed in either double or single quotes. For + more details, see the bash(1) manpage, and search it for "Here + Documents".) + If modifying Udev rules with an editor, be sure to leave each + rule on one physical line. If you are going to use the bus position as a key, create diff --git a/chapter07/symlinks.xml b/chapter07/symlinks.xml index d19ce4155..e8a27d7ef 100644 --- a/chapter07/symlinks.xml +++ b/chapter07/symlinks.xml @@ -43,10 +43,16 @@ SUBSYSTEM=="block", ENV{ID_MODEL}=="PHILIPS_CDD5301", \ EOF - Although the examples in this book work properly, be aware - that Udev does not recognize the backslash for line continuation. - If modifying Udev rules with an editor, be sure to leave each rule - on one physical line. + Be aware that Udev does not recognize the backslash for line + continuation. The examples in this book work properly because both + the backslash and newline are ignored by the shell. This makes the + shell send each rule to cat on only one line. (The shell ignores + this sequence because the EOF string used in the here-document + redirection is not enclosed in either double or single quotes. For + more details, see the bash(1) manpage, and search it for "Here + Documents".) + If modifying Udev rules with an editor, be sure to leave each + rule on one physical line. This way, the symlinks will stay correct even if you move the drives