Re: [Haskell-cafe] struggling with blocking shell cmd when using System.Process

2012-03-20 Thread Brandon Allbery
On Tue, Mar 20, 2012 at 17:51, Rouan van Dalen wrote: > If I try to su the runShell function with the following command, it simply > blocks forever: > > git --no-pager blame > > but if I do: > > git status > > The runShell function works as expected. Can someone shed some light on > why

[Haskell-cafe] struggling with blocking shell cmd when using System.Process - part 2

2012-03-20 Thread Rouan van Dalen
Hi Everyone, I forgot to say, I am running GHC 7.2.2 on Windows7 x64. Regards.___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] struggling with blocking shell cmd when using System.Process

2012-03-20 Thread Rouan van Dalen
Hi Everyone, I am strugling to get the following code to work correctly and I'm hoping someone will be able to shed some light as to why the code is behaving as it does:    {-| runs the supplied command and args as a SHELL command -}    runShell :: String -> IO (String, ExitCode)    runShell shel