Shell script array join

FOO=( a b c ) SAVE_IFS=$IFS IFS=”,” FOOJOIN=”${FOO[*]}” IFS=$SAVE_IFS echo $FOOJOIN