based on top of #338
Inspired by #330.
Sys.command, Unix.open_process_in, Unix.open_process_full all go through cmd.exe to execute the given command.
In our case, it means we call cmd.exe to call bash.
This is unnecessary, and complicate things. We can directly call a posix shell and not have to worry about another layer of escaping.
In this PR, we use open_process_args* funtions to avoid going through cmd.exe
based on top of #338 Inspired by #330.
Sys.command
,Unix.open_process_in
,Unix.open_process_full
all go throughcmd.exe
to execute the given command. In our case, it means we call cmd.exe to call bash. This is unnecessary, and complicate things. We can directly call a posix shell and not have to worry about another layer of escaping.In this PR, we use
open_process_args*
funtions to avoid going throughcmd.exe