You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Native pipeline fails to redirect stdout to files, always to console ( PSNativeCommandPreserveBytePipe enabled ) #19836
See attached script and output. Or: open the latest daily pwsh.exe and do something like hostname.exe > somefile instead it will write to stdout. You do not need to use the repro script from any specific powershell version, as it downloads the daily and uses that for the repro.
Thanks though for byte pipes just amazing to have this native now.
native program stdout is written to the redirected file
Actual behavior
native program stdout is written to console stdout always
Error details
No response
Environment data
Name Value
---------
PSVersion 7.4.0-preview.4
PSEdition Core
GitCommitId 7.4.0-preview.4
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Activity
SeeminglyScience commentedon Jun 22, 2023
Thanks for the report! I was able to repro, opened #19841 to fix.