On Tue, Sep 13, 2016, at 16:24, Sven Panne wrote: > > * On Windows under a MinGW bash you get a a warning for ghci: > > $ stack --resolver=nightly-2016-07-01 exec ghci -- --version > Run from outside a project, using implicit global project config > WARNING: GHCi invoked via 'ghci.exe' in *nix-like shells > (cygwin-bash, in particular) > doesn't handle Ctrl-C well; use the 'ghcii.sh' shell > wrapper instead > The Glorious Glasgow Haskell Compilation System, version 8.0.1 > > But using ghcii.sh through stack doesn't work: > > $ stack --resolver=nightly-2016-07-01 exec ghcii.sh -- --version > Run from outside a project, using implicit global project config > > D:\Benutzer\Sven\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.1\bin\ghcii.sh: > createProcess: invalid argument (Exec format error)
My guess is that `stack.exe` executes commands using the native Windows `CreateProcess`, which has no concept of Bash-like shell scripts (since they are a foreign thing introduced by MinGW). Perhaps try something like `stack exec sh ghcii.sh` instead? (Or `stack exec -- sh -c <command>` if you want to be agnostic to whether `<command>` is a true executable or just a script.) _______________________________________________ Haskell-community mailing list [email protected] http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-community
