[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mv can't change filename case on case-insensitive file systems

From: Jonathan Lennox
Subject: mv can't change filename case on case-insensitive file systems
Date: Tue, 14 Aug 2007 13:47:26 -0400

(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

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


$ 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

Jonathan Lennox

reply via email to

[Prev in Thread] Current Thread [Next in Thread]