SyntaxFix
Write A Post
Hire A Developer
Questions
Just quote the argument to echo:
( IFS=$'\n'; echo "${my_array[*]}" )
the sub shell helps restoring the IFS after use