Skip to content

Not sure if expected behaviour or bug: -hascount of 1 passes on null-values #2089

Answered by fflaten
OranguTech asked this question in Q&A
Discussion options

You must be logged in to vote

It's basically the same issue as #1000. PowerShell passes null elements through the pipeline. Should supports pipeline input, but can't know if this was a null that should be ignored or a null element from a collection that it should count.

Until PowerShell lets us know more about the origin of the pipeline, I'm not sure if there's much that can be done.

To properly identify this we'd have to drop pipeline input iirc.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by OranguTech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants