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

2007-08-17 Thread Paul Eggert
Eric Blake <[EMAIL PROTECTED]> writes: > Lacking an efficient standardized API, checks for case-insensitivity are only > needed when stricmp() succeeds when strcmp() fails (actually, I'm not sure > whether choice of locale can affect case-insensitive equality of filenames?). > I would figure

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

2007-08-17 Thread Eric Blake
Jonathan Lennox cs.columbia.edu> writes: > 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. There is another

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

2007-08-16 Thread John Cowan
Jonathan Lennox scripsit: > No, on Cygwin rename(2) will change file case: Ah, sorry. I had mixed up what rename(2) does with what mv does. -- First known example of political correctness: John Cowan After Nurhachi had united all the other http://www.ccil.org/~cowan Jurchen tribes un

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

2007-08-16 Thread Jonathan Lennox
On Thursday, August 16 2007, "John Cowan" wrote to "Eric Blake, John Cowan, Jonathan Lennox, bug-coreutils@gnu.org" saying: > Eric Blake scripsit: > > > You missed my earlier remark - since POSIX requires case sensitivity, > > a case-insensitive file system is not specified by POSIX, therefore,

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

2007-08-16 Thread John Cowan
Eric Blake scripsit: > You missed my earlier remark - since POSIX requires case sensitivity, > a case-insensitive file system is not specified by POSIX, therefore, > a platform may do whatever it likes with rename(2), including change > the case (rather than be a no-op). Well and good. In fact,

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

2007-08-16 Thread Matthew Woehlke
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 . Filesyst

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

2007-08-15 Thread Eric Blake
> > FAT is always upper case and the driver forces it to > lower case. VFAT ignores attempts to change case > with rename(), in conformity to Posix. You missed my earlier remark - since POSIX requires case sensitivity, a case-insensitive file system is not specified by POSIX, therefore, a platfo

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

2007-08-15 Thread Jonathan Lennox
On Wednesday, August 15 2007, "Eric Blake" wrote to "Jonathan Lennox, bug-coreutils@gnu.org" saying: > > (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 > > here.) > > The bug-tracker forwards

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

2007-08-15 Thread John Cowan
Eric Blake scripsit: > Consider - should > rename("Foo", "foo") be a no-op when stat("Foo") and stat("foo") > resolve to the same file? Reading just the POSIX rename(2) > requirements seems to say yes (it requires rename to be a no-op > when both names resolve to the same inode, ie. no case chang

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

2007-08-14 Thread Eric Blake
> (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 > here.) The bug-tracker forwards all edits to this list, so you just repeated yourself. > > On Cygwin using non-managed mounts (and presumably

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

2007-08-14 Thread Jonathan Lennox
(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 here.) On Cygwin using non-managed mounts (and presumably other operating systems when using a case-insensitive file system), it's not possible to use