<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>Le 3 nov. 06 à 23:55, Allan Odgaard a écrit :</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">As for why this is not a good idea (as you asked in the other letter) then it is because you are running TextMate as root, and TextMate will run *a lot* of other code, load frameworks, have input manager code injected into it, etc. and all that code will run as root.</FONT></P></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>OK, it's what i've understood...</DIV><DIV><BR><BLOCKQUOTE type="cite"> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">As for why your wrapper did not work, you need to call ‘mate -w’ to have mate wait till TextMate is done writing the file.</FONT></P></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>fine thanks, i'll put that "-w" in my notes...</DIV><DIV><BR><BLOCKQUOTE type="cite"> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">It did not ask because you made the file writable by the world, so it was allowed to write to the file.</FONT></P></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>right i didn't catched that because i was stuck with user:group ;-)</DIV><DIV><BR><BLOCKQUOTE type="cite"> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">That said, I can’t reproduce your problem.</FONT></P></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>other guys from a french shell mailing list too, they said, in short, TextMate behaves correctly.<BR><BLOCKQUOTE type="cite"> </BLOCKQUOTE></DIV><BR><DIV>let me tell you what i've done in the mean time.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>delete "everything" (found by locate TextMate) belonging to TextMate.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>"re-install" a fresh downloaded TextMate.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>try again BUT with my mystake "-rw-rw-rw-" at that time.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>i edit the file the result being a change in user:group, then i realize the background window within TextMate was black, then i've trashed the "" prefs too (i had forgotten that in the previous step.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>after that i edit again the same file and verified user:group (still with the bad "rw-rw-rw-" ) here TextMate change the contents of the file save it WITHOUT modifying user:group....</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>then at least a part of my prob comes from "<FONT class="Apple-style-span" face="Lucida Grande">com.macromates.textmate.plist</FONT>" or the other one i don't have the name.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>unfortunately because i've done that by rm -f, I don't have anymore those prefs files.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>right now if i open the file "essai-sudo-config" :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>TextMate let me edit it BUT asks for authetification when saving.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>from TextMate everything is OK deleting the prefs....</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Satisfied by TextMate, I've re-installed mate :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>~/Desktop/sudo_textmate%> which mate</DIV><DIV>/Users/yvon/bin/mate</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>then, i've done a (without the famous -w) :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>~/Desktop/sudo_textmate%> mate essai-sudo-config</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>here again i got wrong user:group afterwars (TextMate didn't ask for autheticating).</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>is that a normal behaviour of mate I ask for that particular point to you because to me i've got contradictory answers from this mailing list.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>thanks for all !</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>best,</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Yvon</DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>