[GHC] #12674: GHC doesn't handle ./ prefixed paths correctly

GHC ghc-devs at haskell.org
Sat Oct 8 22:08:28 UTC 2016


#12674: GHC doesn't handle ./ prefixed paths correctly
-------------------------------------+-------------------------------------
           Reporter:  dobenour       |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.0.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  GHC rejects
  Unknown/Multiple                   |  valid program
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 GHC doesn't correctly handle paths preceded by `./` on the command line,
 if their first character (after any number of `./`s) is a `-`.

 For instance, `ghc ./-a.hs` fails, even if `a.hs` exists.

 Somewhere, `./-a.hs` is being converted to `-a.hs`.  I have not been able
 to figure out where this happens.

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


More information about the ghc-tickets mailing list