On Fri, Oct 05, 2012 at 03:21:42PM +0100, Ken Moffat wrote:
> On Fri, Oct 05, 2012 at 06:50:57AM -0600, Scott wrote:
> > On Fri, Oct 05, 2012 at 05:49:27AM -0500, William Harrington wrote:
> > > 
> > > 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
> > > 
> > 
> > `huh?`
> > 
> > Scott Swanson
> > 
> 
>  Did you try it ?  It does exactly what William stated.
> 

Sorry, it was before 1st cup of coffee and I didn't see any backticks
in the example. When I put the missing << chars in the second example,
then it did work and I see what he is meaning.

Scott Swanson

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to