-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Select-Object -First populates -ErrorVariable #9185
Copy link
Copy link
Closed
Labels
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-FixedThe issue is fixed.The issue is fixed.
Description
Steps to reproduce
& {
[CmdletBinding()]param()
1,2,3,4 | Select -First 1
} -ErrorVariable Problems;
$Problems | Format-List * -ForceExpected behavior
There are no errors, so $Problems should be empty.
Actual behavior
$Problems has StopUpstreamCommandsException which Select-Object -First threw.
Environment data
Name Value
---- -----
PSVersion 6.1.3
PSEdition Core
GitCommitId 6.1.3
OS Microsoft Windows 10.0.18353
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-FixedThe issue is fixed.The issue is fixed.