1 |
Form #1 looks clearer than #3, but still not so clear :) |
2 |
|
3 |
On 10/25/07, Roy Marples <uberlord@g.o> wrote: |
4 |
> |
5 |
> On Thu, 2007-10-25 at 18:02 +0200, Marijn Schouten (hkBst) wrote: |
6 |
> > These sh ``arrays'' are really just strings, right? Did you implement |
7 |
> > functions to take them apart? Can the same function handle forms 1 and 3? |
8 |
> |
9 |
> I don't think we could use both. |
10 |
> Here's a code snippet of actually using them |
11 |
> |
12 |
> # How baselayout-2 presently handles arrays |
13 |
> eval "$(_get_array array)" |
14 |
> for x in "$@"; do |
15 |
> echo "$x" |
16 |
> done |
17 |
> |
18 |
> # How baselayout-2 may handle arrays based on this discussion |
19 |
> IFS=" |
20 |
> " |
21 |
> for x in $(_get_array array); do |
22 |
> unset IFS |
23 |
> echo "$x" |
24 |
> done |
25 |
> |
26 |
> Assume that the _get_array function correctly maps the bash array to the |
27 |
> posix shell one in both cases. |
28 |
> |
29 |
> Thanks |
30 |
> |
31 |
> Roy |
32 |
> |
33 |
> -- |
34 |
> gentoo-dev@g.o mailing list |
35 |
> |
36 |
> |
37 |
|
38 |
|
39 |
-- |
40 |
Ioannis Aslanidis |
41 |
|
42 |
<deathwing00[at]gentoo.org> 0xB9B11F4E |
43 |
-- |
44 |
gentoo-dev@g.o mailing list |