[lfs-support] vi for chapter 6

Richard Melville richard.melville69 at googlemail.com
Sat Oct 6 05:56:42 PDT 2012


>
> 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
>
>
Thanks for the explanation William; I had no idea that was the case.

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20121006/56bf142f/attachment.html>


More information about the lfs-support mailing list