Please feel free to provide feedback or file bugs here.

BUG: PowerShell stderr redirect to file inserts newlines

If I run the following command in PowerShell:

$ .\long_error_message.exe 2>error.txt

, I get spurious newlines in error.txt. I generated a full repro and extremely clumsy solution at [1]. Can we declare this behavior as a bug? Note that cmd.exe operates exactly as one would expect.

[1] https://stackoverflow.com/questions/48655624/powershell-stderr-redirect-to-file-inserts-newlines

2 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Luke Breuer shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base