<br><br><div class="gmail_quote">2012/9/12 Allan Odgaard <span dir="ltr"><<a href="mailto:mailinglist@textmate.org" target="_blank">mailinglist@textmate.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Sep 11, 2012, at 10:24 AM, Yvon Thoraval <<a href="mailto:yvon.thoraval@gmail.com">yvon.thoraval@gmail.com</a>> wrote:<br>
<br>
> Here it is : […] Save failed! File exists - (bin/menu.zsh, bin/menu.zsh~)<br>
> […]<br>
<div class="im">> Also, i should mention i had a file "bin/menu.zsh~" BEFORE using rmate, then, removing it before a second rmate gave :<br>
</div>> […]<br>
<div class="im">> Then, rmate is working except another file with the suffix "~" exists too.<br>
<br>
</div>I’m a little unclear as to whether or not you solved your problem.<br>
<br>
It might be that File::rename does not unlink destination first. Given that you are using rvm and the script is in ruby, I would assume you can test the relevant code on your version of ruby to see why it has a problem.<br>

<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br></div><div>For me it is clear enough.</div><div>I did some test1 :</div><div><br></div><div>1 - edit remotely a file "~/bin/menu.zsh" *not* having  "~/bin/menu.zsh~" (~suffix) it is OK.</div>
<div>2 - i duplicate the file to "~/bin/menu.zsh~" by :</div><div>$ cp ~/bin/menu.zsh ~/bin/menu.zsh~</div><div>and try using rmate :</div><div><div>yt@D620 /home/yt $ rmate -v bin/menu.zsh</div><div>Connect: ‘220 imyt.local RMATE TextMate (Darwin 11.4.0)’</div>
<div>yt@D620 /home/yt $ Saving bin/menu.zsh</div><div>Save failed! File exists - (bin/menu.zsh, bin/menu.zsh~)</div><div>Closed bin/menu.zsh</div><div>Done</div></div><div><br></div><div><br></div><div>here it doesn't work...</div>
<div><br></div><div>I look at that point this morning, that is how to solve the "~ prob"...</div></div>-- <br><div><font face="'comic sans ms', sans-serif" color="#6600cc">Yvon</font></div><div><br></div>
<br>