This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Wild card to address drives

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
$ ls -d /proc/cygdrive/?/\$RECYCLE.BIN
'/proc/cygdrive/c/$RECYCLE.BIN'  '/proc/cygdrive/d/$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:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]