(I reported this issue on the bug tracker on Savannah, but it looks like
sending bug reports to this mailing list is preferred, so I'm repeating it
here.)

On Cygwin using non-managed mounts (and presumably other operating systems
when using a case-insensitive file system), it's not possible to use
Coreutils mv to change the case of a filename; mv reports that they are the
same file.

The underlying Cygwin rename() function does support this functionality.

Also see the thread on the Cygwin mailing list starting at
<http://cygwin.com/ml/cygwin/2007-08/msg00335.html>.

Example:

$ touch foo
$ mv foo Foo
mv: `foo' and `Foo' are the same file
$ mv --version
mv (GNU coreutils) 6.9
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Parker, David MacKenzie, and Jim Meyering.
$ uname -a
CYGWIN_NT-5.1 jonathan-lmi 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin
$ perl -e 'rename "foo", "Foo" or die($!)'
$ ls [Ff]oo
Foo 

-- 
Jonathan Lennox
[EMAIL PROTECTED]


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to