Note: Due to technical difficulties, the Archives are currently not up to date.
GMANE provides an alternative service for most mailing lists. c.f. bug 424647
List Archive: gentoo-dev
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
> could.
>
> 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
> variable.
What if bash starts to parse the script completely and barfs at 'syntax
error' before it starts executing stuff?
--
Best regards,
Michał Górny
|
|