RE: HERE document mystery

2005-12-16 Thread Com MN PG P E B Consultant 3
> "Com MN PG P E B Consultant 3" > <[EMAIL PROTECTED]> wrote: > > echo THIS DOES NOT WORK > > foo=$(cat exp_test < > V=1234 > > abcd > > BAD > > 0. Since you passed a file name to cat, it will ignore stdin. > 1. Since the here-document belongs to the command in $(), the >here-document must al

Re: HERE document mystery

2005-12-15 Thread Paul Jarc
"Com MN PG P E B Consultant 3" <[EMAIL PROTECTED]> wrote: > echo THIS DOES NOT WORK > foo=$(cat exp_test < V=1234 > abcd > BAD 0. Since you passed a file name to cat, it will ignore stdin. 1. Since the here-document belongs to the command in $(), the here-document must also be entirely inside $