From: simonmar Date: Thu, 12 Jun 2003 16:25:31 +0000 (+0000) Subject: [project @ 2003-06-12 16:25:31 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~774 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=187dc566092345305b7255166d49d2b5e609b249 [project @ 2003-06-12 16:25:31 by simonmar] Urk, don't quote/escape the command name on Windows, because the compiler is exceedingly naughty and sometimes uses 'perl "..."' as the command name. --- diff --git a/ghc/compiler/main/SysTools.lhs b/ghc/compiler/main/SysTools.lhs index a2f0d1d..505610c 100644 --- a/ghc/compiler/main/SysTools.lhs +++ b/ghc/compiler/main/SysTools.lhs @@ -754,7 +754,7 @@ foreign import ccall unsafe "rawSystem" -- a single string. Command-line parsing is done by the executable -- itself. rawSystem cmd args = do - let cmdline = translate cmd ++ concat (map ((' ':) . translate) args) + let cmdline = {-translate-} cmd ++ concat (map ((' ':) . translate) args) withCString cmdline $ \pcmdline -> do status <- throwErrnoIfMinus1 "rawSystem" (c_rawSystem pcmdline) case status of