jeroen / sys

Powerful replacements for base::system2
Other
106 stars 3 forks source link

conflict with system2 on Windows #1

Closed jeroen closed 7 years ago

jeroen commented 7 years ago

After running system2 on Windows, stdout/stderr no longer work:

#works
sys::exec_with_wait("ping", "localhost")
sys::exec_with_wait("ping", "localhost")

# run base
base::system2("ping", "localhost")

# no longer works
sys::exec_with_wait("ping", "localhost")
jeroen commented 7 years ago

This is solved because we no longer use GetStdHandle(STD_OUTPUT_HANDLE).