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
{{ message }}
Repository navigation
cd-ing to a new drive and back does not restore path #6749
Issue-BugIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.WG-Engine-Providersbuilt-in PowerShell providers such as FileSystem, Certificates, Registry, etc.
>$PSVersionTable
Name Value
---------
PSVersion 6.1.0-preview.1
PSEdition Core
GitCommitId v6.1.0-preview.1-99-g35d8de927b8e408461a5b4fc40ba20016c68433e
OS Microsoft Windows 10.0.16299
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
It looks like #6600 caused a regression. It seems to be Windows only. I tested with a9781de with no repro and then with 35d8de9 to successfully repro.
Ilya (@iSazonov) We could use New-PSDrive -Name TestSetLocation -Provider FileSystem -Root Path\To\Root and later Remove-PSDrive -Name TestSetLocation later. Alternatively, we could use subst.exe for Windows.
Ji Luo (@GeeLaw) Thanks! I guess we could use New-PSDrive -Name "Z" -Provider FileSystem -Root Path\To\Root - seems one char name can be important in the test.
Issue-BugIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.WG-Engine-Providersbuilt-in PowerShell providers such as FileSystem, Certificates, Registry, etc.
Activity
iSazonov commentedon Apr 27, 2018
We need add new tests for this but I guess CI has only one filesystem drive.
GeeLaw commentedon Apr 27, 2018
Ilya (@iSazonov) We could use
New-PSDrive -Name TestSetLocation -Provider FileSystem -Root Path\To\Rootand laterRemove-PSDrive -Name TestSetLocationlater. Alternatively, we could usesubst.exefor Windows.iSazonov commentedon Apr 27, 2018
Ji Luo (@GeeLaw) Thanks! I guess we could use
New-PSDrive -Name "Z" -Provider FileSystem -Root Path\To\Root- seems one char name can be important in the test.iSazonov commentedon Apr 29, 2018
@mcbobke Feel free push PR - now we know what tests we need to add to exclude a regression.
Revert "Fix New-Item to work correctly when given path is drive root …
Revert changes from PR #6600 which cause a regression in drive behavi…
Revert changes from PR PowerShell#6600 which cause a regression in dr…