I am experiencing the following behavior in PowerShell that I cannot explain and find cumbersome.
I am working in an arbitrary directory and the path of the directory is shown in the prompt:
PS C:\Users\Rene\AppData\Local\Temp>
Also, get-location reports the "correct" path:
PS C:\Users\Rene\AppData\Local\Temp> get-location
Path
----
C:\Users\Rene\AppData\Local\Temp
I then type mkdir xyz | cd in order to create a directory and change the working directory into this new directory:
PS C:\Users\Rene\AppData\Local\Temp> mkdir xyz | cd
All of a sudden, the path in the prompt is prefixed with Microsoft.PowerShell.Core\FileSystem:::
PS Microsoft.PowerShell.Core\FileSystem::C:\Users\Rene\AppData\Local\Temp\xyz>
This change is also reflected with get-location:
PS Microsoft.PowerShell.Core\FileSystem::C:\Users\Rene\AppData\Local\Temp\xyz> get-location
Path
----
Microsoft.PowerShell.Core\FileSystem::C:\Users\Rene\AppData\Local\Temp\xyz
What is going on here and how can I turn that prefix off?