Gentoo Archives: gentoo-pms

From: Ulrich Mueller <ulm@g.o>
To: gentoo-pms@l.g.o
Subject: Re: [gentoo-pms] [PATCH] EAPI must be at least a single char.
Date: Mon, 01 Oct 2012 00:08:56
In Reply to: Re: [gentoo-pms] [PATCH] EAPI must be at least a single char. by Zac Medico
1 >>>>> On Sun, 30 Sep 2012, Zac Medico wrote:
3 >> tries to write a PM, likely fucking that up. If what you were
4 >> saying was the actual intention behind it, that assignment would've
5 >> just been along the lines of EAPI=("[^"]*"|'[^']*'|[^\t ]); aka
6 >> "here's how you grab what looks like an EAPI assignment".
8 > I would have preferred a regex that just matches any assignment like
9 > this, but didn't feel like bikeshedding it,
11 I doesn't really matter what the regexp is, as long as it matches a
12 superset of the allowed EAPI syntax. Unknown or invalid EAPIs that the
13 regexp doesn't match will still be rejected, because the results from
14 parsing and from sourcing the ebuild don't agree.
16 And it is practically impossible to find a regexp that would match all
17 valid bash assignments. You would have to handle backslash escapes,
18 dollar signs, and whatnot.
20 > since the one that's currently in the spec works in practice.
22 Exactly.
24 Ulrich


Subject Author
Re: [gentoo-pms] [PATCH] EAPI must be at least a single char. Zac Medico <zmedico@g.o>