terminal: Terminal Preview 1.3 breaks Windows PowerShell 5 (32-bit x86)'s history save and view and its command line colors

Environment

Windows build number: Microsoft Windows [Version 10.0.19042.422] for x64 Windows Terminal version (if applicable): 1.3.2382.0

Using the default Terminal settings.json file and without any PowerShell profile files.

Steps to reproduce

  1. Make sure that Windows Terminal Preview is registered to be run as wt.exe in Settings -> Apps -> Apps and features -> App execution aliases, and log out and log in if needed to make the setting fully take effect.
  2. Run this command from Start -> Run: wt.exe "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe"
  3. Type get-help gv -ful with one L, press Tab.
  4. Observe get-help gv -Full with 2 letters L, and the colors of that string.
  5. Press Enter to run the command.
  6. Exit Terminal and restart it using the same command you previously used in Start -> Run.
  7. Press the up arrow key repeatedly.

Expected behavior

  • In the get-help command you ran, get-help was in yellow and -Full was in a darker shade of gray than the other text.
  • After relaunching Terminal, you could use the up arrow key to see your command history, including the get-help command you just ran.

Actual behavior

  • In the get-help command, all the text was the same color.
  • The command history was not accessible.
  • If you now run PowerShell (x86) using the old console window, you see that the get-help command and other commands you ran in PowerShell within Terminal were not recorded in the history.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (8 by maintainers)

Commits related to this issue

Most upvoted comments

I’m reverting the environment fix for 1.3’s move to stable this week because we do not otherwise have a good solution for this.