diff options
author | Stefan Holdermans <stefan@holdermans.nl> | 2020-04-20 21:51:57 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-05-21 12:16:08 -0400 |
commit | a0b79e1b16887371d5cd14d53a607772ca730fb5 (patch) | |
tree | 3722888cc606656e6a7a5c110e2ae3b8ec410cf1 /testsuite/tests | |
parent | 82663959d2f1ddbb514a652593bc8064fd69d6aa (diff) | |
download | haskell-a0b79e1b16887371d5cd14d53a607772ca730fb5.tar.gz |
Allow GHCi :script file names in double quotes
This patch updates the user interface of GHCi so that file names passed
to the ':script' command can be wrapped in double quotes.
For example:
:script "foo bar.script"
The implementation uses a modified version of 'words' that treats
character sequences enclosed in double quotes as single words.
Fixes #18027.
Diffstat (limited to 'testsuite/tests')
-rw-r--r-- | testsuite/tests/ghci/should_run/T18027.script | 1 | ||||
-rw-r--r-- | testsuite/tests/ghci/should_run/T18027.stdout | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/should_run/T18027.script b/testsuite/tests/ghci/should_run/T18027.script index fd839d2392..bb13844f81 100644 --- a/testsuite/tests/ghci/should_run/T18027.script +++ b/testsuite/tests/ghci/should_run/T18027.script @@ -1 +1,2 @@ :script T18027\ SPACE\ IN\ FILE\ NAME.script +:script "T18027 SPACE IN FILE NAME.script" diff --git a/testsuite/tests/ghci/should_run/T18027.stdout b/testsuite/tests/ghci/should_run/T18027.stdout index d81cc0710e..daaac9e303 100644 --- a/testsuite/tests/ghci/should_run/T18027.stdout +++ b/testsuite/tests/ghci/should_run/T18027.stdout @@ -1 +1,2 @@ 42 +42 |