Opened 5 years ago

Closed 5 years ago

#7138 closed bug (fixed)

GHCi does no respect -ignore-dot-ghci anymore

Reported by: SimonHengel Owned by: pcapriotti
Priority: highest Milestone: 7.6.1
Component: GHCi Version: 7.6.1-rc1
Keywords: Cc:
Operating System: Linux Architecture: x86_64 (amd64)
Type of failure: Incorrect result at runtime Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


Steps to reproduce:

$ echo foobar > .ghci
$ ghci -ignore-dot-ghci

Expected results: GHCi is started without any errors.

Actual result: GHCi reports "Not in scope: `foobar'".

Change History (4)

comment:1 Changed 5 years ago by igloo

difficulty: Unknown
Milestone: 7.6.1
Priority: normalhighest

We think this is caused by the "-i" flag consuming this argument.

comment:2 Changed 5 years ago by pcapriotti

Owner: set to pcapriotti

comment:3 Changed 5 years ago by p.capriotti@…

commit f78b31a36b5b49afbdea199269319faca261c898

Author: Paolo Capriotti <>
Date:   Mon Aug 13 12:48:29 2012 +0100

    Fix ambiguous flag resolution (#7138)
    Pick longest flag when more than one matches in findArg.
    This fixes an issue where -ignore-dot-ghci wasn't honored, because the
    flag was parsed as "-i gnore-dot-ghci".

 compiler/main/CmdLineParser.hs |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

comment:4 Changed 5 years ago by pcapriotti

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.