here-file's in lfs (Was: Re: Compose key (and console fonts))

elko elko at home.nl
Mon Oct 15 12:12:55 PDT 2001


On Monday 15 October 2001 20:35, Gerard Beekmans wrote:
> cat > /etc/sysconfig/keyboard << "EOF"
> # Begin /etc/sysconfig/keyboard
>
> LAYOUT=<path-to-keymap>
> # End /etc/sysconfig/keyboard
> EOF

when i copy'n'paste these command's from the book, the last "EOF"
doesn't do the job, I have to enter EOF at the *beginning* of
the last line and without the `"' around the EOF string;
also, every line has 1 space before it,
which i have to `x' with vi...

is this because of the formatting in the book ?


from lfs-book-3.0.txt (and CVS-html):
--[snip]--
 cat > $LFS/etc/group << "EOF"
         root:x:0:
         bin:x:1:
         ......
 EOF

This type of section is used mainly when creating configuration files. 
The first command (in bold) tells the system to create the file 
$LFS/etc/group from whatever is typed on the following lines until the 
sequence EOF is encountered. Therefore, this whole section is generally 
typed as seen.
--[snip]--


if i make the first line like this: cat > $LFS/etc/group << " EOF"
(notice the extra space before "EOF"), the c'n'p works fine,
maybe it's something the book can use ??

-- 
ElkOS: 8:48pm up 1 day, 3:31, 3 users, load average: 1.58, 1.36, 1.29
bofhX: telnet: Unable to connect to remote host: Connection refused

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list