I'm trying to create an array of functions in order to iterate through each function in order.
declare -a FUNCTION
FUNCTION[1]="FUNCTION.A"
FUNCTION[2]="FUNCTION.B"
FUNCTION[3]="FUNCTION.C"
for i in "${!FUNCTION[@]}"; do
${FUNCTION[$i]};
done
This just prints out FUNCTION.A and says command not found. I need it to run the function. Suggestions?