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 |