This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Wild card to address drives
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Hans-Bernhard Bröker <HBBroeker at t-online dot de>, cygwin at cygwin dot com
- Date: Thu, 18 Jul 2019 20:18:35 +0300
- Subject: Re: Wild card to address drives
- References: <9D9AC45310887B40A7245734E850FBE179089E44@FS-MX02.frontier.local> <98821e64-e055-0ff9-46ea-1dbcc061cd4c@t-online.de>
- Reply-to: cygwin at cygwin dot com
Greetings, Hans-Bernhard Bröker!
> Am 18.07.2019 um 10:03 schrieb Fergus Daly:
>> I have
>> none / cygdrive binary 0 0
>> as the only line in the file /etc/fstab to allow for example
>> $ ls /h/config.sys
>> instead of the long-hand
>> $ ls /cygdrive/h/config.sys
> And that's precisely your problem. You've now overlaid two mount points
> onto /: the cygdrive tree, and the normal Cygwin root mount.
I understand that, but I don't understand the /proc/cygdrive behavior in such
case.
My expectation was that /proc/cygdrive/ would only hold Windows drives.
But...
$ ls -l /proc/cygdrive
lrwxrwxrwx 1 anrdaemon None 0 июл 18 20:17 /proc/cygdrive -> /
Why?
> Without this, your command would have worked just fine.
>> In Linux I can type something like
>> ls /?/ -Ax
>> as a wild card to address ALL drives,
> Not really, as there is no such thing as "drives" on Linux. The above
> will list all directories under / that have single letters as their name
> --- whether those be mounted filesystems, or ordinary directories.
--
With best regards,
Andrey Repin
Thursday, July 18, 2019 20:15:38
Sorry for my terrible english...