Opened 15 years ago

Closed 12 years ago

Last modified 10 years ago

#197 closed feature request (fixed)

allow "\ " escapes in GHCi commands

Reported by: hamrichards Owned by: rjmccall
Priority: normal Milestone:
Component: GHCi Version: None
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description (last modified by igloo)

It would be nice if, in file names, "\ " were handled as " ". This 
would make the GHCi interface consistent with those of 
Terminal and Hugs.

Change History (5)

comment:1 Changed 13 years ago by wolfgang

Summary: GHCi (Mac OS X) file namesallow "\ " escapes in GHCi commands

Renamed the bug, to clarify what it is all about. GHCi currently does not recognize '\ ' escape sequences in the arguments for the :load command, while hugs does.

This is especially useful on Mac OS X, where

  • there is a tradition of using spaces in file and directory names
  • the system-supplied Terminal will insert a pathname with properly escaped spaces if you drag a file to a terminal window.

comment:2 Changed 12 years ago by rjmccall

Architecture: Unknown
difficulty: Unknown
Operating System: Unknown
Owner: changed from nobody to rjmccall
Status: assignednew

I've submitted a solution to this which is currently awaiting discussion.

comment:3 Changed 12 years ago by igloo

Component: NoneGHCi
Description: modified (diff)
Resolution: Nonefixed
Status: newclosed

With GHC 6.6:

Prelude> :l q\ w.hs
[1 of 1] Compiling Main             ( q w.hs, interpreted )

comment:4 Changed 10 years ago by simonmar

Architecture: UnknownUnknown/Multiple

comment:5 Changed 10 years ago by simonmar

Operating System: UnknownUnknown/Multiple
Note: See TracTickets for help on using tickets.