On 03/13/2012 08:29 PM, Walter Dnes wrote:
I'm answering Ciaran's and Brian's posts together, because the answer is the same for both... namely, we need a 2-pass processor, regardless of whether it's bash/perl/python/whatever. Pass 1 checks for syntax errors and retrieves "special" variables, answering Ciaran's concern. Today, it's EAPI. In future, there may be others. Pass 2 does the build, assuming no errors detected in pass 1.
Problem is, the only thing that can tell if there's a bash syntax error is bash itself.