strange ^M at file name
<pre><code>[root@file Engineer]# ls resume_Al_Kassar_9-29-08.doc.txt^M 
resume_Al_Kassar_9-29-08.doc.txt?
[root@file Engineer]#
</code></pre>

<p>But I browse into that directory by "File Transfer Window",didn't see ^M at all</p>

<p>it's simply "resume_Al_Kassar_9-29-08.doc.txt"</p>

<p>Any anyone step into this issue ever?And how to solve this?</p>

<p>This .txt^M file is generated by another program,and is processed by "bashFileConvert" function(it's a PHP function).</p>

<pre><code>$toF = bashFileConvert($toF);//this step generated ^M
$cmd = "$parser $file $arrow_str $toF";
</code></pre>

<p>How can I get rid of this annoying ^M?</p>

<p>Later on I found:</p>

<pre><code>$arrow_str = $arrow ? '&gt;' : '';
$file = bashFileConvert($file);
$toF = bashFileConvert($toF);
$cmd = "$parser $file $arrow_str $toF";
echo $cmd . "\r\n";
file_put_contents('resumeSh',$cmd."\r\n",FILE_APPEND);
</code></pre>

<p>It should be the last line that caused this issue!</p>
