[GHC] #14150: Ctrl+C causes GHCi 8.2.1 to "exit" in Windows (which didn't happen in 8.0.2)

GHC ghc-devs at haskell.org
Thu Aug 24 13:14:30 UTC 2017


#14150: Ctrl+C causes GHCi 8.2.1 to "exit" in Windows (which didn't happen in
8.0.2)
-------------------------------------+-------------------------------------
           Reporter:  RyanGlScott    |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  GHCi           |           Version:  8.2.1
           Keywords:                 |  Operating System:  Windows
       Architecture:                 |   Type of failure:  Incorrect result
  Unknown/Multiple                   |  at runtime
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 On Windows, the situation regarding Ctrl+C in GHCi has always been a
 little flaky in the sense that some shells (e.g., `mintty`-based ones)
 don't intercept Ctrl+C properly, causing GHCi to exit prematurely.
 However, up until 8.0.2, Ctrl+C was being intercepted correctly on
 `cmd.exe` and PowerShell.

 In GHC 8.2.1, however, this has changed. If you hit Ctrl+C in GHCi on
 PowerShell, then GHCi will appear to "exit" (in the sense that the prompt
 will go back to the PowerShell one). However, if you try typing and
 entering commands, there's a 50-50 chance it will be interpreted by
 PowerShell or a lingering GHCi process (indicating that GHCi wasn't really
 killed!).

 (Apologies for the rather crude description, but I'm not sure of a better
 way to report what is going on here.)

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


More information about the ghc-tickets mailing list