Re: bash 4.1 command substitution

2010-08-09 Thread Chet Ramey
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

Re: bash 4.1 command substitution

2010-08-09 Thread John Kelly
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 \ >>

Re: bash 4.1 command substitution

2010-08-09 Thread Dennis Williamson
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

bash 4.1 command substitution

2010-08-06 Thread John Kelly
>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) echo two=$two >one=abc >./xs: command substitution: line 7: syntax error near unexpected token `)' >./xs: command substitution: line 7: `cat data)' >two