microsoft / microsoft/terminal
Paste multiple line text sometimes corrupted in Cygwin bash shell
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
### Windows Terminal version
1.11.2921.0
### Windows build number
10.0.19042.1466
### Other Software
GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin)
### Steps to reproduce
Add a profile for Cygwin.
```
{
"commandline": "C:\\cygwin64\\bin\\bash.exe -l",
"guid": "{09ff2493-xxxx-4ee9-xxxx-d7f90bb2xxxx}",
"hidden": false,
"icon": "C:\\cygwin64\\Cygwin-Terminal.ico",
"name": "Cygwin"
},
```
Open Cygwin bash shell in a Terminal tab window and execute `vi /tmp/temp.txt` and then paste multiple line text. For example:
```
this is a sample text to test Windows terminal copy-paste issue, line 1
this is a sample text to test Windows terminal copy-paste issue, line 2
this is a sample text to test Windows terminal copy-paste issue, line 3
this is a sample text to test Windows terminal copy-paste issue, line 4
this is a sample text to test Windows terminal copy-paste issue, line 5
this is a sample text to test Windows terminal copy-paste issue, line 6
this is a sample text to test Windows terminal copy-paste issue, line 7
this is a sample text to test Windows terminal copy-paste issue, line 8
this is a sample text to test Windows terminal copy-paste issue, line 9
this is a sample text to test Windows terminal copy-paste issue, line 10
this is a sample text to test Windows terminal copy-paste issue, line 11
this is a sample text to test Windows terminal copy-paste issue, line 12
this is a sample text to test Windows terminal copy-paste issue, line 13
this is a sample text to test Windows terminal copy-paste issue, line 14
this is a sample text to test Windows terminal copy-paste issue, line 15
this is a sample text to test Windows terminal copy-paste issue, line 16
this is a sample text to test Windows terminal copy-paste issue, line 17
this is a sample text to test Windows terminal copy-paste issue, line 18
this is a sample text to test Windows terminal copy-paste issue, line 19
this is a sample text to test Windows terminal copy-paste issue, line 20
this is a sample text to test Windows terminal copy-paste issue, line 21
this is a sample text to test Windows terminal copy-paste issue, line 22
this is a sample text to test Windows terminal copy-paste issue, line 23
this is a sample text to test Windows terminal copy-paste issue, line 24
this is a sample text to test Windows terminal copy-paste issue, line 25
this is a sample text to test Windows terminal copy-paste issue, line 26
this is a sample text to test Windows terminal copy-paste issue, line 27
this is a sample text to test Windows terminal copy-paste issue, line 28
this is a sample text to test Windows terminal copy-paste issue, line 29
this is a sample text to test Windows terminal copy-paste issue, line 30
this is a sample text to test Windows terminal copy-paste issue, line 31
this is a sample text to test Windows terminal copy-paste issue, line 32
this is a sample text to test Windows terminal copy-paste issue, line 33
this is a sample text to test Windows terminal copy-paste issue, line 34
this is a sample text to test Windows terminal copy-paste issue, line 35
this is a sample text to test Windows terminal copy-paste issue, line 36
this is a sample text to test Windows terminal copy-paste issue, line 37
this is a sample text to test Windows terminal copy-paste issue, line 38
this is a sample text to test Windows terminal copy-paste issue, line 39
this is a sample text to test Windows terminal copy-paste issue, line 40
```
### Expected Behavior
The text pasted in Cygwin bash shell as is.
### Actual Behavior
The text pasted in Cygwin bash shell corrupted sometimes. There is no such issue when using mintty.
https://user-images.githubusercontent.com/3469040/153351084-b25930f9-11c4-4886-9ce7-a889aa468207.mp4
Contributor guide
Research direction
No source file or test is named. Start by reproducing the issue with the provided Cygwin profile, GNU bash, vi, and the 40-line sample, then compare the behavior with mintty. Done means multiline text pastes into the Cygwin bash shell unchanged and the regression is covered by a suitable test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100