wsl commands result in lines with carriage returns #2523

Open
opened 2026-01-30 22:57:24 +00:00 by claunia · 0 comments
Owner

Originally created by @maharris77 on GitHub (Jul 3, 2019).

From PowerShell, running

wsl cat file1 > file2
wsl echo text3 > file2

results in a file2 with carriage returns. If I am inside WSL-Ubuntu and run the commands (without wsl), the resulting file does not have carriage returns, which is the desired behavior.

Originally created by @maharris77 on GitHub (Jul 3, 2019). From PowerShell, running ``` wsl cat file1 > file2 wsl echo text3 > file2 ``` results in a file2 with carriage returns. If I am inside WSL-Ubuntu and run the commands (without `wsl`), the resulting file does not have carriage returns, which is the desired behavior.
claunia added the Needs-TriageResolution-ExternalNeeds-Tag-FixProduct-Powershell labels 2026-01-30 22:57:24 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2523