This is the mail archive of the cygwin@cygwin.com 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]

The death of the //x use in cygwin


I wanted to give a heads up to everyone that the //c method
for accessing drives will finally be removed in Cygwin 1.3.3.
We've been threatening to do this for more than a year and
the time has finally come.

This means that if you do something like:

ls //c/foo

it will be interpreted as "list directory 'foo' on server 'c'".

So, if you want to access files on a MS-DOS device, use the /cygdrive
method of accessing the drive:

ls /cygdrive/c/foo

But you all knew about this already, right?

If this is too cumbersome, you can change /cygdrive to whatever
you want.  Many people seem to like to have the drives accessible
as a directory so that c: == /c .  The easiest way to default to
this behavior is to do this:

mount -s --change-cygdrive-prefix /

Or conversely, if you think that /cygdrive is too short and too
hard to remember, you could also do something like:

mount -s --change-cygdrive-prefix /bobs-disk-devices

Then, you can access drives as:

ls /bobs-disk-devices/c/foo

Note that the default "mount mode" for these devices remains as "text
mounts".  If you want to change the mount mode to be "binmode', you
can do this:

mount -b -s --change-cygdrive-prefix /

For a more advanced description on what these options do, check out
the cygwin documentation at http://www.cygwin.com/ .

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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