[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash-4.2(42) on AIX 6.1 has broken command expansion in double-quote
Re: bash-4.2(42) on AIX 6.1 has broken command expansion in double-quoted strings
Wed, 27 Feb 2013 15:30:18 -0500
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130216 Thunderbird/17.0.3
On 2/27/13 1:26 PM, Jason Vas Dias wrote:
> Hi bash gurus - bash appears to be broken on AIX 6.1 - I'd really
> appreciate some advice :
> With bash-4.2 patchlevel 42 (the latest available as of today from
> ftp.gnu.org ),
> on AIX, the resultant bash built with gcc-4.7.2 and system ld + as,
> ends up being
> broken wrt to command output in strings:
> $ ./bash
> bash-4.2$ echo "$(echo hello)"
> bash: command substitution: line 2: syntax error near unexpected token `)'
> bash: command substitution: line 2: `echo hello)"'
> bash-4.2$ v="$(date)"
> bash: command substitution: line 13: syntax error near unexpected token `)'
> bash: command substitution: line 13: `date)"'
I can't reproduce this, but ISTR something similar when the parser was
built with byacc. I think a sufficiently modern version of bison should
work. Make sure you delete builtins/evalstring.o and
builtins/libbuiltins.a after rebuilding y.tab.[ch]. The dependency there
is tricky, and it's best just to do it explicitly.
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/