1 |
On 22:49 Thu 25 Oct , Roy Marples wrote: |
2 |
> On Thu, 2007-10-25 at 14:31 -0700, Donnie Berkholz wrote: |
3 |
> > Is there any way we could avoid these altogether, and instead use |
4 |
> > separate variables for each array element? |
5 |
> |
6 |
> Well, we could prefix with numbers |
7 |
> |
8 |
> array="1.2.3.4 netmask 5.6.7.8; |
9 |
> \* |
10 |
> 'host.name' netmask 1.2.3.4 |
11 |
> -I 'option; $FOO with spaces'" |
12 |
> |
13 |
> Would become |
14 |
> |
15 |
> 0_config_eth0="1.2.3.4 netmask 5.6.7.8;" |
16 |
> 1_config_eth0="\*" |
17 |
> 2_config_eth0="'host.name' netmask 1.2.3.4" |
18 |
> 3_config_eth0="-I 'option; $FOO with spaces'" |
19 |
|
20 |
I was hoping for some sort of meaningfully named separate variables, not |
21 |
an even messier fake array. |
22 |
|
23 |
Thanks, |
24 |
Donnie |
25 |
-- |
26 |
gentoo-dev@g.o mailing list |