bug-coreutils
[Top][All Lists]
Advanced

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

Re: case sensitivity of mv


From: Eric Blake
Subject: Re: case sensitivity of mv
Date: Sun, 24 Jun 2007 08:02:19 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.12) Gecko/20070509 Thunderbird/1.5.0.12 Mnenhy/0.7.5.666

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

According to Francky Leyn on 6/24/2007 2:52 AM:
> Dear,
> 
> when I execute "mv webboy WebBoy", mv says that
> the source directory is equal to the destination directory,
> and refuses to execute the command. webboy and WebBoy
> are not the same. Why is mv then refusing to execute?

This is a design feature of case-insensitive file systems.  It is not
coreutils' fault that the underlying OS refuses to do case-insensitive
renames when the file system cannot tell the two spellings apart, rather,
mv is merely reporting the results of its attempt to use the rename(2)
syscall.

On case-insensitive file systems, a case-changing rename requires a
two-pass rename:
mv webboy webboy1; mv webboy1 WebBoy

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

Eric Blake             address@hidden
-----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

iD8DBQFGfnkN84KuGfSFAYARAsQtAKCgpcotFX0rLmGAKY+nDcd77Sbt3QCglwwL
Iemp+kDRz2VOsEkz3TAsl7c=
=SJmU
-----END PGP SIGNATURE-----




reply via email to

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