get array from function bash

get array from function bash