When I run the command ls //
is Cygwin, the shell hangs for about 12 seconds, then gives the error ls: reading directory '//': Permission denied
. I remember reading somewhere that /some//path
is interpreted the same as /some/path
in POSIX paths, and accordingly, when I run the command in an Ubuntu virtual machine, there is no delay, and ls outputs the contents of /
.
I can't find anything about //
in the Cygwin special filenames documentation, so why does this happen, and how can I reduce the delay?
Edit:
It turns out \\*
paths are network paths on Windows. When I disconnect my computer from all networks, ls \\
returns an empty listing immediately. When I connect to a some networks, I get a listing of hosts on the network, but on other networks, I encounter the problem described above. Considering this, is the some way to configure Windows so that the delay is reduced, even in the case of a permission error?
ls //
returns instantly and no files are listed.