Pass a bash array as an argument

I have a bash script in which I’m using an array to get a list of files and I needed to pass the content of this array as an argument, to send an email to some users. This is the array: RAW_LIST="$(echo "ls -1 /download")" declare -a LIST readarray -t LIST <<<"${RAW_LIST}"RAW_LIST="$(echo "ls -1 /download")"… Continue reading “Pass a bash array as an argument”