Please feel free to provide feedback or file bugs here.

ERROR: Select-Object with -First parameter populates -ErrorVariable even if there was no error

If you run: 1..2 | select -ErrorVariable a
then $a is empty - OK.

If you run: 1..2 | select -First 2 -ErrorVariable a
then in $a is "System error"

1 vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)

We’ll send you updates on this idea

Adam Sova shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base