From c447b9e272c0b2cfc3a15cc890e40daf7a500b8d Mon Sep 17 00:00:00 2001 From: simonpj Date: Fri, 13 Jun 2003 06:22:23 +0000 Subject: [PATCH] [project @ 2003-06-13 06:22:23 by simonpj] Add the commit message as a comment --- ghc/compiler/main/SysTools.lhs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ghc/compiler/main/SysTools.lhs b/ghc/compiler/main/SysTools.lhs index 505610c..f9138cd 100644 --- a/ghc/compiler/main/SysTools.lhs +++ b/ghc/compiler/main/SysTools.lhs @@ -755,6 +755,9 @@ foreign import ccall unsafe "rawSystem" -- itself. rawSystem cmd args = do let cmdline = {-translate-} cmd ++ concat (map ((' ':) . translate) args) + -- Urk, don't quote/escape the command name on Windows, because the + -- compiler is exceedingly naughty and sometimes uses 'perl "..."' + -- as the command name. withCString cmdline $ \pcmdline -> do status <- throwErrnoIfMinus1 "rawSystem" (c_rawSystem pcmdline) case status of -- 1.7.10.4