title: read: read error: 0: Resource temporarily unavailable when calling scripts using case in bash
body: <p>I am trying to create a menu that allows a user to call certain shell scripts in a the current directory. The menu loops until the user exits the script (entering 5)</p>
  
  <p>Here is my code so far:</p>
  
  <pre><code>until [ "$SELECTION" = "5" ]; do    
  echo "# Enter a number to launch:"                            
  echo "# 1) Script 1"
  echo "# 2) Script 2"
  echo "# 3) Script 1 and Script 2"
  echo "# 4) Readme"
  echo "# 5) Exit"
  echo -n "Launch: "
  read SELECTION
  case $SELECTION in
      1) 
      (exec "./script1") ;;
      2) 
      (exec "./script2") ;;
      3)
      (exec "./script1")
      (exec "./script2") ;;
      4) vi "readme.txt" ;;
      5) exit 0 ;;
      *) echo "Error. Please enter a valid selection." ;;
      esac
  done
  </code></pre>
  
  <p>After the user selection, the selected script runs fine but once it is done, I get an error that just repeats:</p>
  
  <pre><code>read: read error: 0: Resource temporarily unavailable
  </code></pre>
  
  <p>And it never returns to the menu.
  Im not sure what I'm doing wrong. Any ideas? This is in bash.</p>