Closed hhugo closed 3 months ago
''
for bash commands (it looks nicer)We might want to import 1 and 2, I don't know about 3. We can probably ignore 4 and 5
3 was fixed in OCaml 4.05
7342, #797: fix Unix.read on pipes with no data left on Windows
it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez)
- handle long command on windows (above 8191 bytes), by moving the command to a separate shell script.
@dra27, now that we no longer rely on cmd.exe
do we still have such a low limit ? A quick search online says that createProcess has a limit of 32767.
This is a straight import of the patch used to fix ocamlbuild on windows inside opam-repository.
Opened as a Draft for now.
I've imported it on top of #329 so that we can have a CI. I've added a commit to make the testsuite pass again on my machine.