Form #1 looks clearer than #3, but still not so clear :) On 10/25/07, Roy Marples <[EMAIL PROTECTED]> 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 > > -- > [EMAIL PROTECTED] mailing list > >
-- Ioannis Aslanidis <deathwing00[at]gentoo.org> 0xB9B11F4E -- [EMAIL PROTECTED] mailing list