Opened 14 months ago

Closed 6 months ago

#7685 closed bug (fixed)

:script command does not resolve ~

Reported by: nomeata Owned by:
Priority: normal Milestone: 7.8.1
Component: GHCi Version: 7.6.2
Keywords: Cc: hvr
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Although the tab completion after ":script ~/..." would work, the command itself does not resolve ~ to the value of $HOME. This is counter-intuitive, and it would be nicer if ~ would work in parameters to :script.

Change History (5)

comment:1 Changed 12 months ago by igloo

  • Difficulty set to Unknown
  • Milestone set to 7.8.1

Thanks for the suggestion.

comment:2 Changed 6 months ago by nomeata

  • Cc hvr added
  • Status changed from new to patch

Fix was easy; please merge from branch WIP/T7685 or tell me to go ahead:
http://git.haskell.org/ghc.git/commit/181975b01c1c84f22700e0e1ee64b9124b60cc08

comment:3 Changed 6 months ago by thoughtpolice

Joachim, looks good to me. Please feel free to push it.

comment:4 Changed 6 months ago by Joachim Breitner <mail@…>

In ddc79b229d58c1bed8ae19b955b491436e015e96/ghc:

GHCi: Expand ~ in :script command

Fixes: #7685

comment:5 Changed 6 months ago by thoughtpolice

  • Resolution set to fixed
  • Status changed from patch to closed
Note: See TracTickets for help on using tickets.