-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Closed
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.The issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management module
Description
It seems that when Select-Object -First
tries to stop upstream pipeline input, Get-Process -Module
doesn't handle this request properly and emits many spurious error messages.
Steps to reproduce
Get-Process -Module -Id $PID -ev errs | Select-Object -First 1
$errs.Count | Should -Be 0
Expected behavior
No errors should occur, and the test should succeed.
Actual behavior
Error message Get-Process: Cannot enumerate the modules of the "pwsh" process.
is (wrongly) emitted (without Select-Object -First
, the command succeeds), and the test fails:
InvalidResult: Expected 0, but got 1.
Environment data
PowerShell Core 7.2.0-preview.4
Metadata
Metadata
Assignees
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.The issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management module