logo       

Re: ghc 6.0.1 win98 System.system too successful?: msg#00033

lang.haskell.glasgow.bugs

Subject: Re: ghc 6.0.1 win98 System.system too successful?

On Saturday 18 October 2003 4:04 pm, Claus Reinke wrote:
> Shouldn't this return something other than ExitSuccess, occasionally?

I don't know if it's the same problem but...

On Windows, Hugs' implementation of System.system always returns ExitSuccess
because the Windows routine it calls doesn't return a useful exit status.

My very vague memory from looking into this some years back was that DOS
programs don't have a consistently interpreted exit status the way Unix
programs do and use some kind of out-of-band communication to indicate
failure to the caller.

One would hope that cygwin would change this situation but, IIRC, ghc-compiled
programs don't use cygwin so they can't benefit from having it work properly
under cygwin...

--
Alastair Reid


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise