<br><br><div class="gmail_quote">On Thu, Oct 25, 2012 at 12:10 PM, Jesse Schalken <span dir="ltr">&lt;<a href="mailto:me@jesseschalken.com" target="_blank">me@jesseschalken.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

What if you ran the program from within the directory that contains git.exe?</blockquote><div><br>That seems to work.<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

 Can you check that the PATH environment variable is set correctly from within the program?<br></blockquote><div><br>If I run `system &quot;echo %PATH%&quot;` it shows me the expected %PATH%, including the directory<br>where the git binary lives.<br>

<br><br>Thanks,<br>Pedro<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><div class="gmail_quote"><div><div class="h5">On Thu, Oct 25, 2012 at 10:05 PM, José Pedro Magalhães <span dir="ltr">&lt;<a href="mailto:jpm@cs.uu.nl" target="_blank">jpm@cs.uu.nl</a>&gt;</span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hi all,<br><br>Consider the following program:<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">


module Test where<br><br>import System.Process (readProcess)<br>

<br>main :: IO ()<br>main = readProcess &quot;git&quot; [&quot;describe&quot;, &quot;--tags&quot;] &quot;&quot; &gt;&gt;= putStr<br></blockquote><br>In Windows I get the following behaviour:<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">




&gt; git --version<br>git version 1.7.10.msysgit.1<br><br>&gt; ghc --version<br>The Glorious Glasgow Haskell Compilation System, version 7.6.1<br><br>&gt; runghc Test<br>Test: git: createProcess: does not exist (No such file or directory)<br>




</blockquote><br>The same happens with GHC 7.4.2. In Linux, however, it works as expected:<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">$ git --version<br>




git version 1.7.9.5<br>$ ghc --version<br>The Glorious Glasgow Haskell Compilation System, version 7.4.1<br>$ runghc Test.hs <br>Package-2.0-68-gacaf77a<br></blockquote><br>Can anyone reproduce this result in Windows? Is this a bug or am I doing something wrong?<br>




<br><br>Thanks,<br>Pedro<br><br>
<br></div></div>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br>
</blockquote></div><br>