I’m trying to write my “shell scripts” in OCaml recently to get more practice with the language. I wanted to use
Core in this case for some reason I don’t recall. Maybe some extra string functions.
Anyway, I used
Unix.create_process, and my process was exiting non-zero, but I couldn’t see the error messages from the process I was running. I eventually figured out the cause of the error, but I never figured out how to see stderr.
So… how does one do that?
Preferably (in this case), I’d like to connect the standard streams of the command to those of the parent process, like you can with the non-
Core version of