Re: bash-4.2(42) on AIX 6.1 has broken command expansion in double-quoted strings
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, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/
bash-4.2(42) on AIX 6.1 has broken command expansion in double-quoted strings
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've tried compiling with / without libiconv and either to use AIX /usr/lib/libcurses or latest libncurses (from invisible-island.net), with GCC - 4.7.2 and the latest version of m4 + bison and/or byacc, and with / without all combinations of the '--disable-nls --without-libiconv-prefix --enable-readline --with-installed-readline' configuration options, but with same result. Also, the stock IBM "/opt/freeware" bash 4.1 comes with a bug that disables -completion when the path resolves to an NFS mount point . Does anyone know if there is a way to disable this ? Thanks in advance for any response - Best Regards, Jason Vas Dias