Bug: / pasted as ^_ in WSL Ubuntu via keyoard shortcut #23489

Closed
opened 2026-01-31 08:43:46 +00:00 by claunia · 1 comment
Owner

Originally created by @alexbraga on GitHub (Aug 1, 2025).

Windows Terminal version

1.22.11141.0

Windows build number

10.0.26100.0

Other Software

No response

Steps to reproduce

When pasting a single forward slash (/) into WSL shell (Ubuntu 20.04) in Windows Terminal (Windows 11) using keyboard shortcuts, like Ctrl+v or Ctrl+Shift+v, the character is misinterpreted as ^_

  • If the clipboard contains only /, it is always pasted as ^_
  • If the clipboard contains /sometext/, the first slash is pasted as ^_, and the rest are fine
  • This issue only occurs in WSL sessions. Pasting into PowerShell or CMD within Windows Terminal works correctly
  • Pasting from right-click or clipboard history panel (Win+v, then left click on the desired item) work as expected — the slash is pasted correctly in both cases
  • Issue is reproducible even with clean shell (bash --no-profile --norc) and confirmed in cat raw input mode

Steps to reproduce:

  1. Open a WSL tab in Windows Terminal
  2. Copy a single / to the clipboard
  3. Press Ctrl+v or Ctrl+Shift+v

Expected Behavior

/ in the clipboard should always be pasted as /

Actual Behavior

/ is pasted as ^_

Originally created by @alexbraga on GitHub (Aug 1, 2025). ### Windows Terminal version 1.22.11141.0 ### Windows build number 10.0.26100.0 ### Other Software _No response_ ### Steps to reproduce When pasting a single forward slash (`/`) into WSL shell (Ubuntu 20.04) in Windows Terminal (Windows 11) using keyboard shortcuts, like Ctrl+v or Ctrl+Shift+v, the character is misinterpreted as `^_` - If the clipboard contains only `/`, it is always pasted as `^_` - If the clipboard contains `/sometext/`, the first slash is pasted as `^_`, and the rest are fine - This issue only occurs in WSL sessions. Pasting into PowerShell or CMD within Windows Terminal works correctly - Pasting from right-click or clipboard history panel (`Win+v`, then left click on the desired item) work as expected — the slash is pasted correctly in both cases - Issue is reproducible even with clean shell (`bash --no-profile --norc`) and confirmed in `cat` raw input mode Steps to reproduce: 1. Open a WSL tab in Windows Terminal 2. Copy a single `/` to the clipboard 3. Press `Ctrl+v` or `Ctrl+Shift+v` ### Expected Behavior `/` in the clipboard should always be pasted as `/` ### Actual Behavior `/` is pasted as `^_`
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 08:43:47 +00:00
Author
Owner

@DHowett commented on GitHub (Aug 1, 2025):

This sounds like #17264, which was fixed by #19083, which is being released as I write this comment 🙂

@DHowett commented on GitHub (Aug 1, 2025): This sounds like #17264, which was fixed by #19083, which is being released _as I write this comment_ 🙂
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23489