Bash array of functions
arrays, bash, function
Solution
I'm a moron........ The function must apparently be above where its being called. Kinda annoying. I wish all the functions could reside at the bottom.
Problem
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?