Home Dashboard Directory Help
Search

Indexing with @(0) and @(-1) should work on scalars by Derp McDerp


Status: 

Active


3
0
Sign in
to vote
Type: Bug
ID: 808142
Opened: 11/8/2013 7:28:38 PM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

Powershell v3 let you index on non-$null scalars, e.g.

(42)[0] # returns 42

however:

(42)[,0] returns @() instead of @(42)
Details
Sign in to post a comment.
Sign in to post a workaround.