[lfs-support] vi for chapter 6

William Harrington berzerkula at cox.net
Fri Oct 5 03:49:27 PDT 2012


On Oct 5, 2012, at 4:09 AM, Richard Melville wrote:

>
> A little off-topic but I've pondered this for a long time: in the  
> LFS book why is "EOF" always in quotes; I've found EOF without  
> quotes to work just fine.
>
> Richard
>

If you do cat << EOF

Then any variables or commands in backticks are evaluated

If you do cat << "EOF"

Then variables or commands in backticks are not evaluated.

Example:

cat > test << EOF
TEST=$PWD
EOF

cat > test "EOF"
TEST=$PWD
EOF

Sincerely,

William Harrington




More information about the lfs-support mailing list