You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Get-ChildItem with drive name without a backslash, i.e. c: the error is thrown.
Steps to reproduce
Get-ChildItem c:
Expected behavior
Lists the content of current directory on the specified drive.
Actual behavior
Get-ChildItem : Cannot find path 'C:\C:\' because it does not exist.
At line:1 char:1
+ Get-ChildItem c:
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\C:\:String) [Get-ChildItem], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
Environment data
>$PSVersionTable
Name Value
---------
PSVersion 6.1.0-preview.701
PSEdition Core
GitCommitId v6.1.0-preview.701
OS Microsoft Windows 10.0.17134
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Activity
iSazonov commentedon Jun 9, 2018
It is a regression after 6.0.1 - we should find the bad commit before fix.
sethvs commentedon Jun 12, 2018
Can it be #6774 ?
MaximoTrinidad commentedon Jun 12, 2018
So, is this after Preview.2?
There's no errors on 6.1.0-Preview.2. It runs as expected.
sethvs commentedon Jun 12, 2018
Maximo Trinidad (@MaximoTrinidad) Yes, on 6.1.0-Preview.2 it works.
iSazonov commentedon Jun 13, 2018
Maximo Trinidad (@MaximoTrinidad) Could you please help to find the post Preview2 broken commit? We could use saved artifacts from CI Appveyor.
sethvs commentedon Jun 13, 2018
Ilya (@iSazonov) I believe it is b101d52
iSazonov commentedon Jun 13, 2018
PR with regression is #6774
Dongbo Wang (@daxian-dbw) Rob Holt (@rjmholt) @mcbobke
iSazonov commentedon Jun 14, 2018
I think the code path should be the same for all providers - compare
dir c:,dir alias:,dir hklm:./cc Michael Klement (@mklement0)