eza-community / eza

A modern alternative to ls
https://eza.rocks
European Union Public License 1.2
11.92k stars 215 forks source link

bug: The filename, directory name, or volume label syntax is incorrect. (os error 123) when using PSDrives - "Repo:\\Git\test" #1202

Open kbrucej opened 1 week ago

kbrucej commented 1 week ago

If eza does something unexpected, or its output looks wrong, or it displays an error on the screen, or if it outright crashes, then please include the following information in your report:

If it’s a crash, please include the full text of the crash that gets printed to the screen. If you’re seeing unexpected behaviour, a screenshot of the issue will help a lot.


eza version: v0.19.4 no arguments (or with any arguments the same) PowerShell 7.4.5 / Windows Terminal Windows 11 x86

> gci repo:

    Directory:  Repo:\

Mode                LastWriteTime     Length Name
----                -------------     ------ ----
d----        2024-10-20     19:13        1   Git_Github_Bootcamp

> eza repo:
"repo:": The filename, directory name, or volume label syntax is incorrect. (os error 123)
ChrisDenton commented 1 week ago

PSDrives are a pure powershell concept. As the docs say:

Because temporary drives are known only to PowerShell, you can't access them by using File Explorer, Windows Management Instrumentation (WMI), Component Object Model (COM), Microsoft .NET Framework, or with tools such as net use.

Basically anything that's not powershell cannot understand them.