ubuntu 18.04 bash between originate one and terminal one behave quite different #5150

Closed
opened 2026-01-31 00:06:18 +00:00 by claunia · 3 comments
Owner

Originally created by @tlsalex on GitHub (Nov 24, 2019).

Environment

Windows build number: Microsoft Windows [Version 10.0.18362.476]
Windows Terminal version (if applicable): Windows Terminal (Preview) Version: 0.5.2762.0

software from Microsoft Store :  Ubuntu 18.04

Steps to reproduce

  1. Launch ubuntu 18.04 bash inside terminal. and create a new file and edit it by using "vi config"
  2. Launch ubuntu 18.04 bash separately. and create a new file and edit it by using "vi config"
  3. open a json file (no matter use a notepad or notepad ++ or other text tool)
  4. copy a slice of json code and paste into the config file in step 1 and step 2.

Expected behavior

The code format(layout) is the same as the originate file.

Actual behavior

Please see bellow picture for more clear explanation.

  1. The code in the originate bash is quite normal
  2. But the code in the terminal bash is quite different, bellow each line of code has an empty line.
  3. If I copy code from a json file that originate from linux , will not have this issue in terminal bash.
  4. But I work under windows , always create text(config) file under windows environment and always copy text from notepad.

compare
wrong_format

Originally created by @tlsalex on GitHub (Nov 24, 2019). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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 Windows build number: Microsoft Windows [Version 10.0.18362.476] Windows Terminal version (if applicable): Windows Terminal (Preview) Version: 0.5.2762.0 software from Microsoft Store : Ubuntu 18.04 ``` # Steps to reproduce 1. Launch ubuntu 18.04 bash inside terminal. and create a new file and edit it by using "vi config" 2. Launch ubuntu 18.04 bash separately. and create a new file and edit it by using "vi config" 3. open a json file (no matter use a notepad or notepad ++ or other text tool) 4. copy a slice of json code and paste into the config file in step 1 and step 2. # Expected behavior The code format(layout) is the same as the originate file. # Actual behavior Please see bellow picture for more clear explanation. 1. The code in the originate bash is quite normal 2. But the code in the terminal bash is quite different, bellow each line of code has an empty line. 3. If I copy code from a json file that originate from linux , will not have this issue in terminal bash. 4. But I work under windows , always create text(config) file under windows environment and always copy text from notepad. ![compare](https://user-images.githubusercontent.com/36788337/69489594-9df26780-0eb5-11ea-8219-a0bc5431bc00.PNG) ![wrong_format](https://user-images.githubusercontent.com/36788337/69489596-a2b71b80-0eb5-11ea-9f29-d8f10ded4028.png)
claunia added the Resolution-Duplicate label 2026-01-31 00:06:18 +00:00
Author
Owner

@j4james commented on GitHub (Nov 24, 2019):

I think this might be a duplicate of #1091. If so, it should be fixed in the next preview release.

@j4james commented on GitHub (Nov 24, 2019): I think this might be a duplicate of #1091. If so, it should be fixed in the next preview release.
Author
Owner

@zadjii-msft commented on GitHub (Nov 25, 2019):

Thanks for the report! I'd agree with @j4james, this looks just like /dup #1091.

@zadjii-msft commented on GitHub (Nov 25, 2019): Thanks for the report! I'd agree with @j4james, this looks just like /dup #1091.
Author
Owner

@ghost commented on GitHub (Nov 25, 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 (Nov 25, 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#5150