summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/ghci009.script
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghci/scripts/ghci009.script')
-rw-r--r--testsuite/tests/ghci/scripts/ghci009.script20
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/ghci009.script b/testsuite/tests/ghci/scripts/ghci009.script
new file mode 100644
index 0000000000..ecb635c704
--- /dev/null
+++ b/testsuite/tests/ghci/scripts/ghci009.script
@@ -0,0 +1,20 @@
+-- !!! test `:set args' and `:set prog'
+System.Environment.getArgs
+print it
+System.Environment.getProgName
+print it
+:set args
+System.Environment.getArgs
+print it
+System.Environment.getProgName
+print it
+:set args foo bar
+System.Environment.getArgs
+print it
+System.Environment.getProgName
+print it
+:set prog foo
+System.Environment.getArgs
+print it
+System.Environment.getProgName
+print it