title: Problem running SVN copy from Batch file FOR loop
body: <p>I have a loop in a .BAT file which does the following, as a quick hack to let me branch projects (input checking, etc left out, this is the command which gets run):</p>
  
  <pre><code>@for %%X in (%~3) do svn copy ^
   https://my.svn.account/%%X/trunk ^
   "https://my.svn.account/%%X/branches/%~1" ^
   -m "%~2"
  </code></pre>
  
  <p>So you use it like:</p>
  
  <blockquote>
    <p>branchTool test_branch "testing branch tool" "proj1,proj2"</p>
  </blockquote>
  
  <p>The SVN commands <em>look</em> right:</p>
  
  <pre><code>&gt;branchTool.bat test_branch "testing branch tool" "proj1,proj2"
  svn copy  https://my.svn.account/proj1/trunk  "https://my.svn.account/proj1/branches/test_branch"  -m "testing branch tool"
  svn copy  https://my.svn.account/proj2/trunk  "https://my.svn.account/proj2/branches/test_branch"  -m "testing branch tool"
  </code></pre>
  
  <p>However SVN isn't actually running - the .bat file just loops through quickly printing the commands, and nothing happens.</p>
  
  <p><strong>If I copy-paste the output from each line written to the console and run them individually, they work as expected</strong></p>
  
  <p><em>Comments on using ugly DOS hacking scripts aside</em>, what's the bug? It fails the same with even one input project name, e.g running:</p>
  
  <blockquote>
    <p>branchTool test_branch "testing branch
    tool" proj1</p>
  </blockquote>