Fix conditional setting of stdin handle on Windows (#3379)

* Revert 3121353c6a

* Switch to conditional compilation

* Run formatter

* Switch from conditional compilation to compile-time bool
This commit is contained in:
Kyle L. Davis 2022-08-11 21:27:18 -05:00 committed by GitHub
parent 7559b77d53
commit 21f2affa16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4559,7 +4559,7 @@ fn shell_impl(
.stdout(Stdio::piped())
.stderr(Stdio::piped());
if input.is_some() {
if input.is_some() || cfg!(windows) {
process.stdin(Stdio::piped());
}