I'm trying to change only the case in the filename and getting the error:
ayakovlev@ubuntu:~/host$ mv crc32.hpp CRC32.hpp
mv: ‘crc32.hpp’ and ‘CRC32.hpp’ are the same file
Is it any setting somewhere which controls this mv
behavior? I don't have any aliases for the mv
. The mv
version is below:
ayakovlev@ubuntu:~/host$ mv --version
mv (GNU coreutils) 8.20
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Parker, David MacKenzie, and Jim Meyering.
Ubuntu version is:
ayakovlev@ubuntu:~/host$ uname -a
Linux ubuntu 3.11.10.3 #1 SMP Thu Mar 6 15:31:54 EST 2014 x86_64 x86_64 x86_64 GNU/Linux
IMPORTANT UPDATE:
Note, that the crc32.hpp
file resides on the host filesystem. The host is VMWare Fusion on MacPro, and the Ubuntu is a guest VM.
ls -l crc32.hpp CRC32.hpp
andstat crc32.hpp CRC32.hpp
strace mv crc32.hpp CRC32.hpp
andls ???32.hpp
? I remember a rant about case-insensitive case-preserving filesystems on the linux-kernel mailing list, but I can't find it anymore.mv crc32.hpp tempf; mv tempf CRC32.hpp
. Case-insensitive and case preserving filesystems are difficult to interoperate with (sane) case sensitive ones. See also stackoverflow.com/questions/8904327/case-sensitivity-in-git