title: Bash Scripting: Can you make a function call itself?
body: <p>I'm making a bash script with a simple interactive menu that asks a yes or no question. I'm wondering if I can use a function to call itself and restart the prompt if the person writes random junk, is this possible?</p>
  
  <p>Code:</p>
  
  <pre><code>Question () {
  read -r -p "yes or no quesiotn [Y/N]"
  Response
  
  case Response in
      Y|y)
          #some code
          ;;
      N|n)
          #more code
          ;;
      *) 
          ehco "im sorry i didnt catch that"
          Question
          ;;
      esac
  }
  
  Question
  </code></pre>