Pasting multiple lines using "\" line break #4134

Open
opened 2026-01-30 23:39:05 +00:00 by claunia · 0 comments
Owner

Originally created by @andres-pcg on GitHub (Sep 29, 2019).

Environment

Windows build number: Microsoft Windows [Version 10.0.18990.1]
Windows Terminal version (if applicable): Version: 0.5.2681.0

Steps to reproduce

Copy text with \ line break. Example:

libreadline-gplv2-dev libncursesw5-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libffi-dev \
wget curl libldap2-dev zlib1g-dev lib32z1-dev uuid-dev

Paste it on powershell or wsl console.

Expected behavior

Terminal should recognize \ as a line break and should execute the whole code as it does on powershell or wsl console directly.
image
image

Actual behavior

Terminal will not recognize \ as a line break and will execute each line individually immediately causing a unexpected results.
image
image

Originally created by @andres-pcg on GitHub (Sep 29, 2019). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: Microsoft Windows [Version 10.0.18990.1] Windows Terminal version (if applicable): Version: 0.5.2681.0 ``` # Steps to reproduce Copy text with ```\``` line break. Example: ```make build-essential checkinstall libssl-dev libbz2-dev libzip-dev \ libreadline-gplv2-dev libncursesw5-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libffi-dev \ wget curl libldap2-dev zlib1g-dev lib32z1-dev uuid-dev ``` Paste it on powershell or wsl console. # Expected behavior Terminal should recognize ```\``` as a line break and should execute the whole code as it does on powershell or wsl console directly. ![image](https://user-images.githubusercontent.com/28060986/65827125-037efa80-e25d-11e9-9848-48ae9278e5a0.png) ![image](https://user-images.githubusercontent.com/28060986/65827130-0d086280-e25d-11e9-9ba7-ab47b79c36c7.png) # Actual behavior Terminal will not recognize ```\``` as a line break and will execute each line individually immediately causing a unexpected results. ![image](https://user-images.githubusercontent.com/28060986/65827086-9cf9dc80-e25c-11e9-9b1c-fe77e99265a5.png) ![image](https://user-images.githubusercontent.com/28060986/65827097-bac74180-e25c-11e9-9340-bc858a4a2445.png)
claunia added the Resolution-Duplicate label 2026-01-30 23:39:05 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4134