title: Redirecting standard output to new file adds strange character to end of filename in cygwin
body: <p>I'm having trouble with a shell script in Cygwin. The specific command that's causing the problem is this:</p>
  
  <pre><code>sed -e "s/6.0.[0123456789]\{1,\}/6.0.${REV}/g" "path/to/file/config.xml" &gt; "path/to/file/config.xml.tmp"
  </code></pre>
  
  <p>The problem is that the file is being created with a strange character at the end, so instead of being named config.xml.tmp, it's named "config.xml.tmp". From the "ls" command and from the windows command prompt, it looks like "config.xml.tmp?"</p>
  
  <p>If I run the sed command just from the shell, the file named correctly, and the script works fine in Linux.</p>
  
  <p>Any idea what could be wrong? Thanks!</p>