$ 0 0 Just quote the argument to echo:(IFS=$'\n'; echo "${my_array[*]}")the sub shell helps restoring the IFS after use