[GHC] #10002: Invalid ghcversion.h file in GHC 7.10.1 RC1

GHC ghc-devs at haskell.org
Mon Jan 19 11:21:40 UTC 2015


#10002: Invalid ghcversion.h file in GHC 7.10.1 RC1
-------------------------------------+-------------------------------------
        Reporter:  asr               |                   Owner:  hvr
            Type:  bug               |                  Status:  new
        Priority:  highest           |               Milestone:  7.10.1
       Component:  Compiler          |                 Version:  7.10.1-rc1
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  None/Unknown      |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by Herbert Valerio Riedel <hvr@…>):

 In [changeset:"1289048eaf31915b9335c6f7e0b7b64625ab0ed5/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="1289048eaf31915b9335c6f7e0b7b64625ab0ed5"
 Fix bad '... \\' escape in ghcversion.h generation

 Today I learned about the peculiarities of escaping within
 single-quotes:

 Turns out,

   echo 'foo \\'

 emits

   foo \\

 rather than escaping the '\'. Curiously, if you need to escape a '
 within single-quotes, here's how to do it

   echo 'foo '\'' bar'

 which will emit

   foo ' bar

 This fixes #10002
 }}}

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


More information about the ghc-tickets mailing list