This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: New rename(2) function
On Aug 10 09:01, Earnie Boyd wrote:
> Quoting Corinna Vinschen <corinna-cygwin@cygwin.com>:
>
> >
> >Btw., this looks weird in mv:
> >
> > $ mv -T Bar bar
> > mv: cannot remove `Bar': Operation not permitted
> >
> >Huh? Nobody asked for removing Bar, afaics...
> >
>
> Other than the fact that in windows FiLeSyStEmS Bar == [Bb][Aa][Rr].
And mentioning this well-known fact helps, because...?
I'm asking why mv doesn't say "`Bar' and `bar' are the same file",
rather this weird "cannot remove `Bar': ..." The above request is for
renaming Bar to bar. There is no apparent reason why the source
directory should be removed in this scenario. Therefore the error
message is rather far-fetched from the user's POV, isn't it?
Anyway, the latest iteration of rename(2) will now rename Bar to
bar. There are a couple of changes, so I'd be grateful for more
testing.
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat