I\'m parsing query results from a mysql command (with the --table parameter)
local records=`echo \"${query}\" | $MYSQL -u $MyUSER -h $MyHOST -p$MyPASS --tabl
Make sure you're using Bash 3 or later. The += operator in Bash can be used to manipulate an Array. It will use the current value of the IFS variable to split the tokens and add the value to the array.
+=
IFS
Try: test="$test $data" to concatenate the data
test="$test $data"