ghc 6.0.1 win98 System.system too successful?
Alastair Reid
alastair at reid-consulting-uk.ltd.uk
Sat Oct 18 11:50:21 EDT 2003
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
More information about the Glasgow-haskell-bugs
mailing list