From e54d47753228fc4cc9eafd92fa2b63a9563b68db Mon Sep 17 00:00:00 2001 From: Javier Sagredo Date: Tue, 9 Jul 2024 00:57:48 +0200 Subject: [PATCH] Clarify why we can't run .bat files --- Cabal/src/Distribution/Simple/Utils.hs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cabal/src/Distribution/Simple/Utils.hs b/Cabal/src/Distribution/Simple/Utils.hs index 47caab077..3688f6027 100644 --- a/Cabal/src/Distribution/Simple/Utils.hs +++ b/Cabal/src/Distribution/Simple/Utils.hs @@ -1950,6 +1950,13 @@ exeExtensions = case (buildArch, buildOS) of -- Possible improvement: on Windows, read the list of extensions from the -- PATHEXT environment variable. By default PATHEXT is ".com; .exe; .bat; -- .cmd". + -- + -- See also #10179. + -- + -- Also we cannot actually run @.bat@ files as we do now, because of + -- https://github.com/haskell/process/issues/140. If we detect one of those, + -- we should record that the program is a script and run a @Process.shell@ instead + -- of a @Process.proc@. (_, Windows) -> ["", "exe"] (_, Ghcjs) -> ["", "exe"] (Wasm32, _) -> ["", "wasm"] -- 2.11.4.GIT