title: strange characters when redirecting to file in bash script
body: <p>I have a bash script that contains lines:</p>
  
  <pre><code>remote_installer_svc_args="$local_cifs_mount/eset-remote-installer.args"    
  svc_arg_x86="%SYSTEMROOT%\\$(basename $remote_temp_dir)\\$(basename $INSTALLER_BAT)"
  svc_arg_x64="%SYSTEMROOT%\\$(basename $remote_temp_dir)\\$(basename $INSTALLER_BAT)"
  echo "$svc_arg_x86" &gt; $remote_installer_svc_args
  echo "$svc_arg_x64" &gt;&gt; $remote_installer_svc_args
  </code></pre>
  
  <p>It should produce a file that looks like this (in notepad++ on windows):
  <a href="https://i.stack.imgur.com/jn8n1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jn8n1.png" alt="enter image description here"></a></p>
  
  <p>instead the file looks like this:
  <a href="https://i.stack.imgur.com/ZLsuJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZLsuJ.png" alt="enter image description here"></a></p>
  
  <p>or in vim:
  <a href="https://i.stack.imgur.com/m4a0k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m4a0k.png" alt="enter image description here"></a></p>
  
  <p>What is wrong with the script? Because when I copy those lines into bash it works, only if I run the script it does produce those strange characters...</p>