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