Home Dashboard Directory Help
Search

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


Status: 

Active


9
0
Sign in
to vote
Type: Bug
ID: 807910
Opened: 11/6/2013 12:58:53 PM
Access Restriction: Public
0
Workaround(s)
view
5
User(s) can reproduce this bug

Description

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.
Details
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.
Sign in to post a workaround.