Copy of a single wrapped line from bash introduces new-lines #18509

Open
opened 2026-01-31 06:16:15 +00:00 by claunia · 0 comments
Owner

Originally created by @vadimkantorov on GitHub (Sep 19, 2022).

Windows Terminal version

1.14.2282.0

Windows build number

10.0.22000.978

Other Software

No response

Steps to reproduce

I have launched a long command in WSLv1 bash in Terminal, it looks like:

vadimkantorov@dell_de_vadim:/mnt/c/Users/vadim/$ python ..... my long arguments
long arguments wrapped by terminal window size but still a single line

When I copy these two lines (e.g. for pasting later in another terminal for launching a similar command in parallel), Terminal introduces a newline which was not there originally. This prevents from a proper paste and (probably another issue) - also executes the incomplete command immediately after the paste. It's possible that I entered this command by pressing Up on keyboard which brought this command from bash history.

This must have been reported before, but I could not find an earlier issue just about this. If it indeed is a duplicate, please feel free to close this.

Expected Behavior

No response

Actual Behavior

No newline is introduced and command is not executed immediately after the paste in another tab

Originally created by @vadimkantorov on GitHub (Sep 19, 2022). ### Windows Terminal version 1.14.2282.0 ### Windows build number 10.0.22000.978 ### Other Software _No response_ ### Steps to reproduce I have launched a long command in WSLv1 bash in Terminal, it looks like: ```bash vadimkantorov@dell_de_vadim:/mnt/c/Users/vadim/$ python ..... my long arguments long arguments wrapped by terminal window size but still a single line ``` When I copy these two lines (e.g. for pasting later in another terminal for launching a similar command in parallel), Terminal introduces a newline which was not there originally. This prevents from a proper paste and (probably another issue) - also executes the incomplete command immediately after the paste. It's possible that I entered this command by pressing Up on keyboard which brought this command from bash history. This must have been reported before, but I could not find an earlier issue just about this. If it indeed is a duplicate, please feel free to close this. ### Expected Behavior _No response_ ### Actual Behavior No newline is introduced and command is not executed immediately after the paste in another tab
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 06:16:15 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18509