Variable drive paths with 'global:' prefix in the path do not work with Get-Item - by Keith Hill MVP

Status : 


Sign in
to vote
ID 807910 Comments
Status Active Workarounds
Type Bug Repros 5
Opened 11/6/2013 12:58:53 PM
Access Restriction Public


I can use Test-Path, Set-Item, Remove-Item, Get-Content and Set-Content with this path Variable:\global:foo.  However Get-Item Variable:\global:foo returns nothing but doesn't error either.
Sign in to post a comment.
Posted by Joel 'Jaykul' Bennett on 11/6/2013 at 7:43 PM
For the sake of sanity and the feeling of quality, things as important as content paths and names need to WORK consistently. This is critical if only for that reason. The fact that there are other ways of doing things is not a good enough reason to leave path bugs in PowerShell.