Not possible to paste multiline commands in WSL #3125

Closed
opened 2026-01-30 23:13:40 +00:00 by claunia · 1 comment
Owner

Originally created by @chkt on GitHub (Aug 4, 2019).

Environment

Windows build number: 10.0.18362.239
Windows Terminal version (if applicable): 0.3.2142.0
WSL Ubuntu 18.04.2 LTS

Steps to reproduce

  1. Open WSL Terminal
  2. Copy a multiline escaped command like below to clipboard
test -f \
~/.bashrc
  1. Paste clipboard into open Terminal window using right-click.

Expected behavior

The terminal should print

$ test -f \
> ~/.bashrc

and wait for further input

Actual behavior

The first line is run and the second put in a new prompt afterwards. The second prompt is awaiting further input.

$ test -f \
>
$ ~/.bashrc
Originally created by @chkt on GitHub (Aug 4, 2019). # Environment ```none Windows build number: 10.0.18362.239 Windows Terminal version (if applicable): 0.3.2142.0 WSL Ubuntu 18.04.2 LTS ``` # Steps to reproduce 1. Open WSL Terminal 2. Copy a multiline escaped command like below to clipboard ```sh test -f \ ~/.bashrc ``` 3. Paste clipboard into open Terminal window using right-click. # Expected behavior The terminal should print ```sh $ test -f \ > ~/.bashrc ``` and wait for further input # Actual behavior The first line is run and the second put in a new prompt afterwards. The second prompt is awaiting further input. ```sh $ test -f \ > $ ~/.bashrc ```
claunia added the Resolution-Duplicate label 2026-01-30 23:13:40 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Aug 5, 2019):

This is a manifestation of #1454

@DHowett-MSFT commented on GitHub (Aug 5, 2019): This is a manifestation of #1454
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3125