How to return an array in bash without using globals? How to return an array in bash without using globals? arrays arrays