Ticket #197 (closed feature request: fixed)

Opened 10 years ago

Last modified 5 years ago

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: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description (last modified by igloo) (diff)

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

Changed 7 years ago by wolfgang

  • summary changed from GHCi (Mac OS X) file names to allow "\ " 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.

Changed 7 years ago by rjmccall

  • owner changed from nobody to rjmccall
  • difficulty set to Unknown
  • status changed from assigned to new
  • os set to Unknown
  • architecture set to Unknown

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

Changed 7 years ago by igloo

  • status changed from new to closed
  • resolution changed from None to fixed
  • component changed from None to GHCi
  • description modified (diff)

With GHC 6.6:

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

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.