title: Subroutines in batch files
body: <p>Given the following code:</p>
  
  <pre><code>@Echo off
  ECHO Start
  ECHO Calling SUB_A
  CALL :SUB_A
  ECHO Calling SUB_B
  CALL :SUB_B
  
  :SUB_A
      ECHO In SUB_A
      GOTO:EOF
  
  :SUB_B
      ECHO In SUB_B
      GOTO:EOF
  
  ECHO End
  </code></pre>
  
  <p>I expect this output:</p>
  
  <pre><code>Start
  Calling SUB_A
  In SUB_A
  Calling SUB_B
  In SUB_B
  End
  </code></pre>
  
  <p>But I get this:</p>
  
  <pre><code>Start
  Calling SUB_A
  In SUB_A
  Calling SUB_B
  In SUB_B
  In SUB_A
  </code></pre>
  
  <p>What am I doing wrong here?</p>