List Archive: gentoo-dev
Note: Due to technical difficulties, the Archives are currently not up to date.
provides an alternative service for most mailing lists.c.f. bug 424647
On Fri, 09 Mar 2012 00:35:14 -0500
Michael Orlitzky <michael@...> wrote:
> On 03/09/2012 12:04 AM, Michał Górny wrote:
> >> This is of course isomorphic to requiring a specific EAPI=4 format,
> >> but does allow you to do stupid things like x=`seq 4 4`; eapi $x;
> >> if you want.
> > What advantage does it give us? We still can't change ebuild syntax
> > in global scope because bash will barf.
> Not in EAPI=5, no, but once all PMs are using the eapi function we
> The function can do any crazy thing you want. Right now, we need to
> source the entire ebuild to get at its environment. Before we source
> it for real, we just want to know the value of $EAPI. Since eapi()
> will be the first function called, it can be our interface to this
What if bash starts to parse the script completely and barfs at 'syntax
error' before it starts executing stuff?