Steps to reproduce
- Open the Terminal Application.
- Open a PowerShell session if the user's shell is not set to
pwsh already:
$ pwsh
PowerShell v6.0.2
Copyright (c) Microsoft Corporation. All rights reserved.
https://aka.ms/pscore6-docs
Type 'help' to get help.
Loading personal and system profiles took 799ms.
~>
- Remove the PSReadline module from the current environment:
~> Remove-Module PSReadLine
~>
- Click the
Shell menu, then choose the Reset menu item.
- Press the up cursor key once; notice that a capital
A is entered on the screen.
- Press the up cursor key once more.
Expected behavior
PowerShell should continue running.
Actual behavior
PowerShell crashes:
~> FailFast: Specified argument was out of the range of valid values.
Parameter name: startIndex
at System.Environment.FailFast(System.String, System.Exception)
at System.Environment.FailFast(System.String, System.Exception)
at Microsoft.PowerShell.UnmanagedPSEntry.Start(System.String, System.String[], Int32)
at Microsoft.PowerShell.ManagedPSEntry.Main(System.String[])
Environment data
> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.2
PSEdition Core
GitCommitId v6.0.2
OS Darwin 17.5.0 Darwin Kernel Version 17.5.0: Fri Apr 13 19:32...
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.10032.0, 6.0.2}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Steps to reproduce
pwshalready:Shellmenu, then choose theResetmenu item.Ais entered on the screen.Expected behavior
PowerShell should continue running.
Actual behavior
PowerShell crashes:
Environment data