From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1IlBhl-0002Zj-C2 for garchives@archives.gentoo.org; Thu, 25 Oct 2007 23:01:33 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l9PMxvmY003793; Thu, 25 Oct 2007 22:59:57 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l9PMuihP031762 for ; Thu, 25 Oct 2007 22:56:44 GMT Received: from gentoo.org (c-67-171-150-177.hsd1.or.comcast.net [67.171.150.177]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id C2C6C654EE for ; Thu, 25 Oct 2007 22:56:43 +0000 (UTC) Date: Thu, 25 Oct 2007 15:56:42 -0700 From: Donnie Berkholz To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Opinions Wanted - Arrays again :) Message-ID: <20071025225641.GK29642@supernova> References: <1193326831.4245.16.camel@uberlaptop.marples.name> <20071025213113.GJ29642@supernova> <1193348959.2910.9.camel@uberpc.marples.name> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1193348959.2910.9.camel@uberpc.marples.name> User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: 26b83a3d-45eb-476c-b564-aa2d20c3ee77 X-Archives-Hash: e289447ab1571cceb7fea6b4a851d92a 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. Thanks, Donnie -- gentoo-dev@gentoo.org mailing list