On 8/7/10 8:02 PM, John Kelly wrote:
> On Fri, 06 Aug 2010 17:31:08 +, John Kelly wrote:
>
>>> bash --version
>>> GNU bash, version 4.1.7(1)-release (i586-pc-interix3.5)
>
>> Backquote command substitution works, but $(...) does not.
>
>> I built it like this:
>
>>> CFLAGS="-O2 -march=i686
On Fri, 06 Aug 2010 17:31:08 +, John Kelly wrote:
>>bash --version
>>GNU bash, version 4.1.7(1)-release (i586-pc-interix3.5)
>Backquote command substitution works, but $(...) does not.
>I built it like this:
>>CFLAGS="-O2 -march=i686" \
>>./configure \
>>--mandir=/usr/local/man \
>>
I can't reproduce your problem. Does this work?:
three=$(< data)
echo three=$three
On Fri, Aug 6, 2010 at 12:31 PM, John Kelly wrote:
>
>>bash --version
>>GNU bash, version 4.1.7(1)-release (i586-pc-interix3.5)
>
> #! /usr/local/bin/bash
>
> one=`cat data`
> echo one=$one
>
> two=$(cat data)
> e