Paste behavior in Fish Shell is unexpected #11251

Closed
opened 2026-01-31 02:42:35 +00:00 by claunia · 2 comments
Owner

Originally created by @c-goes on GitHub (Nov 2, 2020).

Environment


Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.19041.0 Microsoft Windows NT 10.0.19041.0

Windows Terminal v1.3.2651.0

Steps to reproduce

  1. Install the fish shell in Ubuntu 20.04 (apt install fish)
  2. Start fish
  3. Paste multiple lines of shell commands

Expected behavior

Like on a Linux desktop system, I would expect fish to show me all commands before they are executed. A confirmation by the user should be needed.

Actual behavior

Windows shows a paste warning, but the fish "security mechanism" is circumvented.

Windows Terminal seems to execute each line by itself instead of giving the whole pasted string to fish shell.

Originally created by @c-goes on GitHub (Nov 2, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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 Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.19041.0 Microsoft Windows NT 10.0.19041.0 Windows Terminal v1.3.2651.0 ``` # Steps to reproduce <!-- A description of how to trigger this bug. --> 1. Install the fish shell in Ubuntu 20.04 (apt install fish) 2. Start fish 3. Paste multiple lines of shell commands # Expected behavior <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> Like on a Linux desktop system, I would expect fish to show me all commands before they are executed. A confirmation by the user should be needed. # Actual behavior <!-- What's actually happening? --> Windows shows a paste warning, but the fish "security mechanism" is circumvented. Windows Terminal seems to execute each line by itself instead of giving the whole pasted string to fish shell.
claunia added the Resolution-Duplicate label 2026-01-31 02:42:35 +00:00
Author
Owner

@DHowett commented on GitHub (Nov 2, 2020):

/dup #395

@DHowett commented on GitHub (Nov 2, 2020): /dup #395
Author
Owner

@ghost commented on GitHub (Nov 2, 2020):

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 (Nov 2, 2020): 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#11251