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 <gentoo-dev+bounces-27301-garchives=archives.gentoo.org@gentoo.org>)
	id 1Il5lA-0003iy-LT
	for garchives@archives.gentoo.org; Thu, 25 Oct 2007 16:40:41 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l9PGdkBn001883;
	Thu, 25 Oct 2007 16:39:46 GMT
Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.249])
	by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l9PGbjBr031982
	for <gentoo-dev@lists.gentoo.org>; Thu, 25 Oct 2007 16:37:45 GMT
Received: by an-out-0708.google.com with SMTP id c38so92205ana
        for <gentoo-dev@lists.gentoo.org>; Thu, 25 Oct 2007 09:37:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=beta;
        h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        bh=KeGVvUDcWsYlJ7pjKzo/Q/UHzMKsQ5JQLPLUplznyIQ=;
        b=YwieRWS/4i3MFdWqB1KTIQYoNykw0BYeNLt6fPLX9KM4ejl8Ht4ttsa6AcKSPVQEm7JWNW/tNz2G+TtcF46SM21Lj5AvR9NbHj2aulhC3zVfTShKeYl5NAMtpxUa/AkyLTou31aPW39l/vRcdRt+Y8O3Qls9p1adk8Tb1YFtdZU=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=beta;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=Ouu9+r61x/izvYfXBL6aUdO/iY6hXHdV+yhmFbJkpniZMIDfA+KUO5fHvbG5NY1yZ3MN+daTYSGwhD+S1voKFBYJWUKIcF+pV9UMlWNf0d3R91yz5snEYSlAsMADiTUA/S5Kxb9FXNGjDI7eFhrdh7CiNqH4sDLVPSEmh4piYTE=
Received: by 10.142.240.9 with SMTP id n9mr601319wfh.1193330263959;
        Thu, 25 Oct 2007 09:37:43 -0700 (PDT)
Received: by 10.142.147.6 with HTTP; Thu, 25 Oct 2007 09:37:43 -0700 (PDT)
Message-ID: <ea440b1d0710250937m98d1247u136cb46a3053332d@mail.gmail.com>
Date: Thu, 25 Oct 2007 18:37:43 +0200
From: "Ioannis Aslanidis" <aslanidis@gmail.com>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Opinions Wanted - Arrays again :)
In-Reply-To: <1193329122.4245.25.camel@uberlaptop.marples.name>
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <1193326831.4245.16.camel@uberlaptop.marples.name>
	 <4720BE02.6080409@gentoo.org>
	 <1193329122.4245.25.camel@uberlaptop.marples.name>
X-Archives-Salt: 397e3289-a603-424e-bde5-fdbac6953eee
X-Archives-Hash: ccd812feb240d5a735a8373b818465f8

Form #1 looks clearer than #3, but still not so clear :)

On 10/25/07, Roy Marples <uberlord@gentoo.org> wrote:
>
> On Thu, 2007-10-25 at 18:02 +0200, Marijn Schouten (hkBst) wrote:
> > These sh ``arrays'' are really just strings, right? Did you implement
> > functions to take them apart? Can the same function handle forms 1 and 3?
>
> I don't think we could use both.
> Here's a code snippet of actually using them
>
> # How baselayout-2 presently handles arrays
> eval "$(_get_array array)"
> for x in "$@"; do
>     echo "$x"
> done
>
> # How baselayout-2 may handle arrays based on this discussion
> IFS="
> "
> for x in $(_get_array array); do
>     unset IFS
>     echo "$x"
> done
>
> Assume that the _get_array function correctly maps the bash array to the
> posix shell one in both cases.
>
> Thanks
>
> Roy
>
> --
> gentoo-dev@gentoo.org mailing list
>
>


-- 
Ioannis Aslanidis

<deathwing00[at]gentoo.org> 0xB9B11F4E
-- 
gentoo-dev@gentoo.org mailing list