Tab completion for [pscustomobject] - by stromnessian

Status : 


Sign in
to vote
ID 785445 Comments
Status Active Workarounds
Type Bug Repros 0
Opened 4/23/2013 9:48:14 PM
Access Restriction Public


When I try to tab complete the [pscustomobject] type, I get a [psobject] instead, which wouldn't be a problem if these two commands were equivalent:

$obj = [psobject]@{'Name'='MyObject'}
$obj = [pscustomobject]@{'Name'='MyObject'}

but they're not.  The first creates a hash table, the second a pscustom object.
Sign in to post a comment.
Posted by Trevor Sullivan [MVP] on 8/14/2013 at 1:29 PM
Weird. I've never tried doing that before. Good find.