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

Open
opened 2026-01-30 23:49:45 +00:00 by claunia · 0 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:45 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4527