On 10/26/15 8:07 AM, Eduardo A. Bustamante López wrote: > Hi Chet, > > I compiled bash with: > > CFLAGS='-O0 -g' ./configure --silent && make -j2 && make tests 2>&1 | tee > out.log > > And I get many parsing errors in the results. Most seem to be parenthesis > related, and some segfaults. I hope these two lead to fixing the whole thing:
Use bison. Command substitution requires invoking the parser recursively, and byacc is completely incapable of reentrant parsing. This is one of the reasons that production bash releases ship with versions of y.tab.c and y.tab.h generated by bison. 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/