GHC doesn't handle ./ prefixed paths correctly
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.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 8.0.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |