[commit: testsuite] master: Fix ghci058 on Windows (711f424)

Ian Lynagh <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/711f42425bb7eb64008b90d56c7cb22b09a18ddf

>---------------------------------------------------------------

commit 711f42425bb7eb64008b90d56c7cb22b09a18ddf
Author: Ian Lynagh <[email protected]>
Date:   Sat Nov 10 01:09:06 2012 +0000

    Fix ghci058 on Windows

>---------------------------------------------------------------

 tests/ghci/scripts/ghci058.script |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/tests/ghci/scripts/ghci058.script b/tests/ghci/scripts/ghci058.script
index 9999989..03d7a30 100644
--- a/tests/ghci/scripts/ghci058.script
+++ b/tests/ghci/scripts/ghci058.script
@@ -1,14 +1,17 @@
 
+:l ../shell.hs
+:def shell (\s -> do shell s; return "")
+
 :set prompt ""
 :set -v1
 
-:! echo "module Ghci058 where c = 'a'" > Ghci058.hs
-:! "$HC" $HC_OPTS -fforce-recomp -c Ghci058.hs
+:shell echo "module Ghci058 where c = 'a'" > Ghci058.hs
+:shell "$HC" $HC_OPTS -fforce-recomp -c Ghci058.hs
 :l Ghci058
 c
 
-:! echo "module Ghci058 where c = 'b'" > Ghci058.hs
-:! "$HC" $HC_OPTS -fforce-recomp -c Ghci058.hs
+:shell echo "module Ghci058 where c = 'b'" > Ghci058.hs
+:shell "$HC" $HC_OPTS -fforce-recomp -c Ghci058.hs
 :l Ghci058
 c
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.