Prerequisites
Steps to reproduce
New-Item -ItemType Directory -Path "foo - bar(123-456)[foo]"
cd -LiteralPath '.\foo - bar(123-456)[foo]'
cd ..
cd -
Set-Location: Cannot find path 'C:\Users\user\foo - bar(123-456)[foo]' because it does not exist.
Expected behavior
Actual behavior
Error details
Environment data
Name Value
---- -----
PSVersion 7.6.2
PSEdition Core
GitCommitId 7.6.2
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.4
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals
No response
Prerequisites
Steps to reproduce
Expected behavior
no error.Actual behavior
errorError details
Environment data
Visuals
No response