-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Ehud Karni on 8/22/2007 3:02 PM:
> I have mounted the NTFS on my Linux (Centos5) using the `mount.cifs'
> command. It is a case-sensitive OS with a case-sensitive FS but with
> case-insensitive mediator (the XP hosting OS). I think the Cygwin
> situation is almost exactly the same. However there is a big difference
> in how `mv' works on Cygwin and Linux:

That's somewhat to be expected, as my case-insensitive patch is
cygwin-specific.

> # ll *c
> -rwxrwxrwx+ 1 ???????? None 34 Aug 22 23:09 TST.uc

Hmm, your /etc/passwd file needs to be updated.

> 
> # mv tst.uc TsT.lc
> # ll *c
> -rwxrwxrwx+ 1 ???????? None 34 Aug 22 23:09 TsT.lc

Yes, the rename occurs even if the first argument did not match the case
of the file on disk.

> 
> # mv tst.lc tst.lc
> mv: `tst.lc' and `tst.lc' are the same file

Intentional.  My patch specifically does not attempt a case rename when
the two arguments are identical, even if the two identical arguments
differ in case from the disk file, under the idea that a user may not be
aware that they are spelling the filename with a different case.  It is
only when the two arguments differ in case that I check whether a
case-renaming was requested.  I could perhaps be persuaded to change this,
but right now I'm inclined to leave it the way it is.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG0sRp84KuGfSFAYARAvsVAKC9D1MvYeQy6kmAcUx7Y11yDk44mQCgxIil
VQioKYDj1plZ6yDoHHY483k=
=tGdU
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to