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. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/