This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: New rename(2) function
On Aug 9 21:23, Eric Blake wrote:
> According to Christian Franke on 8/9/2007 10:38 AM:
> > $ mkdir Bar
> >
> > $ mv Bar bar
> > mv: cannot move `Bar' to a subdirectory of itself, `bar/Bar'
>
> If you wanted rename semantics with directories, you should use 'mv -T Bar
> bar'. But that said, this probably falls in the same category as 'mv Foo
> foo' for non-directories - it would need a cygwin-specific patch to try
> the rename() even when stat() says there is no point to it. And it would
> require that we make the conscious decision to keep the current behavior,
> where rename("A","a") with case-insensitive behavior changes the case.
Btw., this looks weird in mv:
$ mv -T Bar bar
mv: cannot remove `Bar': Operation not permitted
Huh? Nobody asked for removing Bar, afaics...
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat