Unable to use copy and paste backslash on command line #4530

Closed
opened 2026-01-30 23:49:47 +00:00 by claunia · 2 comments
Owner

Originally created by @mhagnumdw on GitHub (Oct 18, 2019).

Environment

Windows build number: 10.0.18362.0
Windows Terminal version: 0.5.2762.0
Terminals: Ubuntu WSL, git-bash, cygwin

Steps to reproduce

Copy and paste the command below into the terminal:

echo \
'backslash test'

Expected behavior

Be interpreted as a single command.

Actual behavior

It is being interpreted as two commands.

image

More Information

If you copy and paste the code below, it works fine.

echo 'line 1' && \
echo 'line 2'

image

Originally created by @mhagnumdw on GitHub (Oct 18, 2019). # Environment ```none Windows build number: 10.0.18362.0 Windows Terminal version: 0.5.2762.0 Terminals: Ubuntu WSL, git-bash, cygwin ``` # Steps to reproduce Copy and paste the command below into the terminal: ```shell echo \ 'backslash test' ``` # Expected behavior Be interpreted as a single command. # Actual behavior It is being interpreted as two commands. ![image](https://user-images.githubusercontent.com/17688846/67058537-a378c700-f12b-11e9-85fa-abc1c277e7f6.png) # More Information If you copy and paste the code below, it works fine. ```bash echo 'line 1' && \ echo 'line 2' ``` ![image](https://user-images.githubusercontent.com/17688846/67058623-fce0f600-f12b-11e9-8dd7-f73454149e1f.png)
claunia added the Resolution-Duplicate label 2026-01-30 23:49:47 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Oct 21, 2019):

This looks like a /dupe of #1091. Thanks!

@DHowett-MSFT commented on GitHub (Oct 21, 2019): This looks like a /dupe of #1091. Thanks!
Author
Owner

@ghost commented on GitHub (Oct 21, 2019):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Oct 21, 2019): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4530