[GHC] #7962: "ghc -e <invalid expression>" should return non-zero exit status

GHC ghc-devs at haskell.org
Wed Jun 5 05:31:40 CEST 2013


#7962: "ghc -e <invalid expression>" should return non-zero exit status
----------------------------+-----------------------------------------------
Reporter:  timmaxw          |          Owner:                  
    Type:  feature request  |         Status:  new             
Priority:  normal           |      Component:  GHCi            
 Version:  7.6.2            |       Keywords:                  
      Os:  Linux            |   Architecture:  Unknown/Multiple
 Failure:  Other            |      Blockedby:                  
Blocking:                   |        Related:                  
----------------------------+-----------------------------------------------
 When GHC is run in expression-evaluation mode (i.e. with the "-e" flag)
 and the expression does not compile, GHC correctly prints an error
 message, but then exits with exit status 0. For example:

 {{{
 $ ghc -e foo

 <interactive>:1:1: Not in scope: `foo'
 $ echo $?
 0
 }}}

 This is inconvenient for automated scripts that call GHC.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7962>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list