Allow spaces in GHCi :script file names
This patch updates the user interface of GHCi so that file names passed to the ':script' command may contain spaces escaped with a backslash. For example: :script foo\ bar.script The implementation uses a modified version of 'words' that does not break on escaped spaces. Fixes #18027.
Showing
- ghc/GHCi/UI.hs 14 additions, 1 deletionghc/GHCi/UI.hs
- testsuite/tests/ghci/should_run/T18027 SPACE IN FILE NAME.script 1 addition, 0 deletions...te/tests/ghci/should_run/T18027 SPACE IN FILE NAME.script
- testsuite/tests/ghci/should_run/T18027.script 1 addition, 0 deletionstestsuite/tests/ghci/should_run/T18027.script
- testsuite/tests/ghci/should_run/T18027.stdout 1 addition, 0 deletionstestsuite/tests/ghci/should_run/T18027.stdout
- testsuite/tests/ghci/should_run/all.T 1 addition, 0 deletionstestsuite/tests/ghci/should_run/all.T
Loading
Please register or sign in to comment