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



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

Reply via email to