On Thu, 2007-10-25 at 15:56 -0700, Donnie Berkholz wrote: > On 22:49 Thu 25 Oct , Roy Marples wrote: > > On Thu, 2007-10-25 at 14:31 -0700, Donnie Berkholz wrote: > > > Is there any way we could avoid these altogether, and instead use > > > separate variables for each array element? > > > > Well, we could prefix with numbers > > > > array="1.2.3.4 netmask 5.6.7.8; > > \* > > 'host.name' netmask 1.2.3.4 > > -I 'option; $FOO with spaces'" > > > > Would become > > > > 0_config_eth0="1.2.3.4 netmask 5.6.7.8;" > > 1_config_eth0="\*" > > 2_config_eth0="'host.name' netmask 1.2.3.4" > > 3_config_eth0="-I 'option; $FOO with spaces'" > > I was hoping for some sort of meaningfully named separate variables, not > an even messier fake array.
I'm all ears for any other suggestions :) BTW, my example fails as shell does not allow numbers to prefix variable names. Would have to be something like a0_ a1_ Thanks Roy -- [EMAIL PROTECTED] mailing list