-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
either run in powershell
$env:no_color="on";pwsh -noninteractive -Command "$errorview='NormalView';throw 'an Error'"
or run this in a command prompt
set no_color=on&pwsh -noninteractive -Command "$errorview='NormalView';throw 'an Error'"
Expected behavior
Error is output but in the consoles forecolorActual behavior
Error is output in red AND the console prompt stays in redError details
No response
Environment data
Name Value
---- -----
PSVersion 7.2.6
PSEdition Core
GitCommitId 7.2.6
OS Microsoft Windows 10.0.22000
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Visuals
Metadata
Metadata
Assignees
Labels
No labels
