":e test.hs" overwrites "test.hs" with emacs tags
This is not really a bug but it can be confusing (and lead to loss of work) for programmers that use both Hugs and GHCi. In Hugs, :e filename
opens filename in an editor. In GHCi 6.5 :e filename
(short for :etags filename
) creates an Emacs tags file, overwriting filename.
Some solutions:
- Use a different command to create emacs tags
- Make the command fail if the file already exists
-Iavor
Trac metadata
Trac field | Value |
---|---|
Version | 6.5 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | GHCi |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Unknown |
Architecture | Unknown |