title: batch cmd exits as I enter the input with space
body: <p>I am writing a batch script for an user interface where you can enter the digits 1 - 10. its pretty much like this example:</p>
  
  <pre>
  @echo OFF
  :ask
  cls
  echo press 1 for test1
  echo press 2 for test2
  set /p input=
  if %input% == 1 goto test1
  if %input% == 2 goto test2
  if %input% GTR 10 goto ask
  goto ask
  :test1
  shutdown
  :test2
  net view
  pause
  goto ask
  </pre>
  
  <p>i have if %input% GTR 10 goto ask, and in the end goto ask in global because if someone types something different it will go back to the question.
  Why does it crash me out of the terminal when I type something different?</p>