I think that Resolve-Path should normalize the path. Do we need a separate cmdlet for that?
Currently, it seems to just pass through whatever you feed it:
I ♥ PS> Push-Location C:\
I ♥ PS> Resolve-Path \Windows | % ToString
\Windows
I ♥ PS> Push-Location FILESYSTEM::C:\
I ♥ PS> Resolve-Path C:\Windows | % ToString
C:\Windows
I ♥ PS> Resolve-Path FileSystem::C:\Windows | % ToString
FileSystem::C:\Windows
I ♥ PS> Resolve-Path Microsoft.PowerShell.Core\FileSystem::C:\Windows | % ToString
Microsoft.PowerShell.Core\FileSystem::C:\Windows
I ♥ PS> Resolve-Path Microsoft.PowerShell.Core\FILESYSTEM::\WINDOWS | % ToString
Microsoft.PowerShell.Core\FILESYSTEM::\WINDOWS
How can I test if two paths refer to the same location?
I think that Resolve-Path should normalize the path. Do we need a separate cmdlet for that?
Currently, it seems to just pass through whatever you feed it:
How can I test if two paths refer to the same location?