On Thu, 2007-10-25 at 17:18 +0100, Roy Marples wrote:
> # How baselayout-2 may handle arrays based on this discussion
> IFS="
> "
> for x in $(_get_array array); do
>     unset IFS
>     echo "$x"
> done

Also, if we didn't need to actually set any variables outside the loop
we could also then write this

_get_array array | while read x; do
  echo "$x"
done

Thanks

Roy

-- 
[EMAIL PROTECTED] mailing list

Reply via email to