Hi,<br><br>sorry if it&#39;s a know fact - I could not find the info easily. I hope this will be useful.<br><br>On Windows, system() seems to work partially, is it normal ? The following works:<br><br><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">&gt;&gt;&gt; system(&quot;echo hello&quot;)<br>
hello<br>=&gt; true<br></font><br>the following doesn&#39;t seem to (although svn is in the path):<br><br><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">&gt;&gt;&gt; system(&quot;svn&quot;)<br>=&gt; false<br>
&gt;&gt;&gt; system(&quot;svn.exe&quot;)<br>=&gt; false<br></font><br>Still on Windows, it seems that IO.popen crashes (I had a quick look at IoOps.cs to see if it was implemented):<br><br><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">&gt;&gt;&gt; IO.popen(&quot;svn.exe&quot;) do |io| puts io.read end<br>
:0:in `popen&#39;: La référence d&#39;objet n&#39;est pas définie à une instance d&#39;un objet. (System::NullReferenceException)<br>        from :0:in `popen&#39;<br>        from :0<br></font>                                                                                                <br>
I ran the same stuff on Mono and got:<br><br><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">IronRuby 1.0.0.0 on Mono 2.4<br>Copyright (c) Microsoft Corporation. All rights reserved.<br><br>&gt;&gt;&gt; system(&quot;blah&quot;)<br>
IronRuby.Libraries:0:in `ExecuteProcessAndWait&#39;: No such file or directory (Errno::ENOENT)<br>        from IronRuby.Libraries:0:in `ExecuteCommandInShell&#39;<br>        from :0:in `system&#39;<br><br>&gt;&gt;&gt; system(&quot;svn&quot;)<br>
=&gt; nil<br>&gt;&gt;&gt; system(&quot;svn &gt; svninfo.txt&quot;)<br>=&gt; nil<br>&gt;&gt;&gt; exit<br></font><br>Finally, running IO.popen on Mono gives the same output as Windows:<div><br></div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">IronRuby 1.0.0.0 on Mono 2.4</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Copyright (c) Microsoft Corporation. All rights reserved.</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br>
</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">&gt;&gt;&gt; IO.popen(&quot;svn.exe&quot;) { |io| puts io.read }</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">:0:in `popen&#39;: Object reference not set to an instance of an object (System::NullReferenceException)</font></div>
<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        </font></span><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">from :0:in `popen&#39;</font></div>
<div><br></div><div><br></div><div>So my question is: what&#39;s the current status on system and IO.popen ? Is it supposed to work and is it a regression, or is it not fully implemented ?</div><div><br></div><div>I may be able to help at some point here (either by providing patches or testing on Mono + Windows) if it&#39;s not your top priority :)</div>
<div><br></div><div>Given that I use Ruby to glue things together quite a lot, that would be useful to me.</div><div><br></div><div>cheers,</div><div><br></div><div>-- Thibaut</div><div></div></div>