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
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    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
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base