bug-coreutils
[Top][All Lists]
Advanced

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

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


From: Matthew Woehlke
Subject: Re: mv can't change filename case on case-insensitive file systems
Date: Thu, 16 Aug 2007 11:55:44 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12) Gecko/20070509 Thunderbird/1.5.0.12 Mnenhy/0.7.4.0

Eric Blake wrote:
[snip] Mac HFS is the other biggest case-preserving
case-insensitive system out there; can anyone comment on
whether rename(2) is a no-op or changes case when given two
case-wise distinct spellings of the same file?

Adding to what Jonathan already posted...

$ df -T .
Filesystem    Type   1K-blocks      Used Available Use% Mounted on
/dev/disk0s3   hfs    80287128  12435372  67595756  16% /
$ 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.
$ /bin/mv foo Foo # /bin/mv is not coreutils
$ ls ?oo
Foo
$ perl -e 'rename("Foo","foo")'
$ ls ?oo
foo
$ uname -srp
Darwin 8.8.0 powerpc
$

--
Matthew
"So long, and thanks for all the fish" -- the dolphins





reply via email to

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