From: "Ioannis Aslanidis" <aslanidis@gmail.com>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Opinions Wanted - Arrays again :)
Date: Thu, 25 Oct 2007 18:37:43 +0200 [thread overview]
Message-ID: <ea440b1d0710250937m98d1247u136cb46a3053332d@mail.gmail.com> (raw)
In-Reply-To: <1193329122.4245.25.camel@uberlaptop.marples.name>
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
next prev parent reply other threads:[~2007-10-25 16:40 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-25 15:40 [gentoo-dev] Opinions Wanted - Arrays again :) Roy Marples
2007-10-25 16:02 ` Marijn Schouten (hkBst)
2007-10-25 16:18 ` Roy Marples
2007-10-25 16:37 ` Ioannis Aslanidis [this message]
2007-10-26 11:30 ` Roy Marples
2007-10-25 17:18 ` Josh Saddler
2007-10-25 21:31 ` Donnie Berkholz
2007-10-25 21:49 ` Roy Marples
2007-10-25 22:56 ` Donnie Berkholz
2007-10-26 6:28 ` Roy Marples
2007-10-26 10:16 ` Richard Freeman
2007-10-26 10:42 ` Roy Marples
2007-10-26 16:36 ` [gentoo-dev] " Duncan
2007-10-26 17:03 ` Roy Marples
2007-10-26 18:57 ` Duncan
2007-10-26 21:17 ` Roy Marples
2007-10-27 3:02 ` Richard Freeman
2007-10-28 6:46 ` [gentoo-dev] " Steve Long
2007-10-29 7:35 ` Natanael Copa
2007-10-30 3:55 ` [gentoo-dev] " Steve Long
2007-10-26 6:13 ` [gentoo-dev] " Alec Warner
2007-10-26 6:32 ` Roy Marples
2007-10-29 9:50 ` Roy Marples
2007-10-30 3:58 ` [gentoo-dev] " Steve Long
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ea440b1d0710250937m98d1247u136cb46a3053332d@mail.gmail.com \
--to=aslanidis@gmail.com \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox