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:
parent
7559b77d53
commit
21f2affa16
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue