title: bash - if return code >=1 re run script, start at the beginning
body: <p>I have a bash script that prints a heading and tests for a value of "Y" or "N". </p>
  
  <p>When someone enters text that does not equal "Y" or "N", I would like to send them back to the beginning of the script, so it prints the heading and the question again.  </p>
  
  <p>I know you can do this with goto but I was wondering if there's a different way because I hear  many individuals say you should not use goto or that it is deprecated. Whether true or not, I'd like to see if anyone else has a way to solve this problem.</p>
  
  <p>Thanks in advance.</p>