* Wild card to address drives
@ 2019-07-18 8:03 Fergus Daly
2019-07-18 16:09 ` Hans-Bernhard Bröker
2019-07-19 2:49 ` Brian Inglis
0 siblings, 2 replies; 4+ messages in thread
From: Fergus Daly @ 2019-07-18 8:03 UTC (permalink / raw)
To: 'cygwin@cygwin.com'; +Cc: 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
In Linux I can type something like
ls /?/ -Ax
as a wild card to address ALL drives, but this does not work in Cygwin.
Is there a wild card syntax that would?
Thank you.
Fergus
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Wild card to address drives
2019-07-18 8:03 Wild card to address drives Fergus Daly
@ 2019-07-18 16:09 ` Hans-Bernhard Bröker
2019-07-18 17:20 ` Andrey Repin
2019-07-19 2:49 ` Brian Inglis
1 sibling, 1 reply; 4+ messages in thread
From: Hans-Bernhard Bröker @ 2019-07-18 16:09 UTC (permalink / raw)
To: cygwin
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.
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.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Wild card to address drives
2019-07-18 16:09 ` Hans-Bernhard Bröker
@ 2019-07-18 17:20 ` Andrey Repin
0 siblings, 0 replies; 4+ messages in thread
From: Andrey Repin @ 2019-07-18 17:20 UTC (permalink / raw)
To: Hans-Bernhard Bröker, cygwin
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8, Size: 1412 bytes --]
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...\x03BKCB\x1cØ\x19[H\x1c\^[Ü\x1cÎ\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0eËØÞYÝÚ[ÛÛKÜ\x1cØ\x19[\Ë\x1d^[[\x03BTN\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0eËØÞYÝÚ[ÛÛKÙ\KÃB^[ØÝ[Y[\x18]\x1a[Û\b\b\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0eËØÞYÝÚ[ÛÛKÙ^[ØÜË\x1d^[[\x03B[ÝXØÜXH\x1a[Î\b\b\b\b\b\x1a\x1d\x1d\x1c\x0eËØÞYÝÚ[ÛÛKÛ[\vÈÝ[ÝXØÜXK\Ú[\^[\x19CBB
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Wild card to address drives
2019-07-18 8:03 Wild card to address drives Fergus Daly
2019-07-18 16:09 ` Hans-Bernhard Bröker
@ 2019-07-19 2:49 ` Brian Inglis
1 sibling, 0 replies; 4+ messages in thread
From: Brian Inglis @ 2019-07-19 2:49 UTC (permalink / raw)
To: cygwin
On 2019-07-18 02:03, Fergus Daly wrote:
> 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
> In Linux I can type something like
> ls /?/ -Ax
> as a wild card to address ALL drives, but this does not work in Cygwin.
> Is there a wild card syntax that would?
Should work - I tried that mapping for a while, but found it interfered with
asking Windows utilities for help e.g. cmd /? had to be cmd /\?:
$ ls -d /?/\$RECYCLE.BIN
'/c/$RECYCLE.BIN' '/d/$RECYCLE.BIN' '/g/$RECYCLE.BIN'
$ ls -d /proc/cygdrive/?/\$RECYCLE.BIN
'/proc/cygdrive/c/$RECYCLE.BIN' '/proc/cygdrive/d/$RECYCLE.BIN'
'/proc/cygdrive/g/$RECYCLE.BIN'
$ cmd /c ver
Microsoft Windows [Version 10.0.17763.615]
$ uname -srvmo
CYGWIN_NT-10.0 3.0.7(0.338/5/3) 2019-04-30 18:08 x86_64 Cygwin
What does mtab show:
$ head /etc/mtab
C:/cygwin64/bin /usr/bin ntfs binary,auto 1 1
C:/cygwin64/lib /usr/lib ntfs binary,auto 1 1
C:/cygwin64 / ntfs binary,auto 1 1
C: /c ntfs binary,posix=0,user,noumount,auto 1 1
D: /d ntfs binary,posix=0,user,noumount,auto 1 1
G: /g ntfs binary,posix=0,user,noumount,auto 1 1
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-07-19 2:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-18 8:03 Wild card to address drives Fergus Daly
2019-07-18 16:09 ` Hans-Bernhard Bröker
2019-07-18 17:20 ` Andrey Repin
2019-07-19 2:49 ` Brian Inglis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).