Please use [code][/code]
tags around your code and data, to preserve formatting and to improve readability. Please do not use quote tags, colors, or other fancy formatting.
Frankly, this is the kind of situation that would do better using a case
case $TIMEFRAME in
"May 2007") May07 ;;
"Jun 2007") June07 ;;
"Jul 2007") July07 ;;
Quit) quit ;;
*) echo "Please try again." ;;
I'm assuming "May07" et al are function or script names, and that your doubled "May" was actually supposed to be "June".
is for evaluating a single string for multiple possible values. if..elif..else
is for evaluating multiple independent
conditions in sequence.
BTW, environment variables are generally all upper-case. So while not absolutely necessary, it's good practice to keep your own user variables in lower-case or mixed-case, to help differentiate them.