mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix the check when reading input in NativeCommandProcessor (#19614)
This commit is contained in:
@@ -435,8 +435,8 @@ namespace System.Management.Automation
|
||||
{
|
||||
// If upstream is a native command it'll be writing directly to our stdin stream
|
||||
// so we can skip reading here.
|
||||
if (ExperimentalFeature.IsEnabled(ExperimentalFeature.PSNativeCommandPreserveBytePipe)
|
||||
&& !UpstreamIsNativeCommand)
|
||||
if (!ExperimentalFeature.IsEnabled(ExperimentalFeature.PSNativeCommandPreserveBytePipe)
|
||||
|| !UpstreamIsNativeCommand)
|
||||
{
|
||||
while (Read())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user