Gentoo Archives: gentoo-portage-dev

From: Mike Frysinger <vapier@g.o>
To: Zac Medico <zmedico@g.o>
Cc: gentoo-portage-dev@l.g.o, Ambroz Bizjak <ambrop7@×××××.com>
Subject: Re: [gentoo-portage-dev] [PATCH] Implement host dependencies (HDEPEND) and dependencies only in affect when ROOT != / (targetroot flag).
Date: Mon, 24 Sep 2012 06:04:05
Message-Id: 201209240039.31170.vapier@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH] Implement host dependencies (HDEPEND) and dependencies only in affect when ROOT != / (targetroot flag). by Zac Medico
1 On Sunday 23 September 2012 23:53:10 Zac Medico wrote:
2 > On 09/23/2012 08:44 PM, Mike Frysinger wrote:
3 > > On Sunday 23 September 2012 22:06:43 Ambroz Bizjak wrote:
4 > >> + case "$EAPI" in
5 > >
6 > > case ${EAPI} in
7 >
8 > If somebody manages to corrupt the EAPI with an invalid value containing
9 > space, then you can get a bash syntax error there if ${EAPI} is
10 > unquoted. Yeah, it's a user error, but it could confuse them even more
11 > than they are already if they see the syntax error and think that
12 > portage is at fault. Also, we might consider that a corrupt EAPI can
13 > come from a binary package (or /var/db/pkg) enviroment.bz2, and so it
14 > may not even be the current user who is at fault.
15
16 i don't think that's true. case is sane unlike `test` and `[`.
17 $ f='a b c'; case ${f} in *) echo yeah;; esac
18 yeah
19 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies