This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: mv deletes file


I have looked at the source code, and there is definately a problem for
Windows 95/98.

The code does something like:

	try to move file src to dest
	if failed because dest already exists
		delete dest
		try to move file src to dest

The latest snapshot (and coolview include this same logic).



Earnie Boyd wrote:
> 
> Which win32 are you using NT3.51/NT4/95/98?  I just tested on NT3.51
> and mv just moves FILE to file and file to FILE without any problems!!
>  Do you have Sergey's latest coolview?
> 
> ---Doug Kushner <dougk@primenet.com> wrote:
> >
> > I'm using bash 2.01 with cyg 19.1.   I know that filenames are
> supposed to
> > be case insensitive, but some tools such as diff do not ignore
> filename
> > case.
> >
> > So, I was trying to rename some uppercase files to lowercase (which
> can be
> > done in a DOS box) and discovered the following problem.  When
> trying to
> > use mv on the same filename, but different case, it just deletes the
> > original file.  I would prefer it rename the file, but at the very
> least
> > it should just generate the error message and leave the original file
> > intact.
> >
> > Example:
> >
> >   $mv FILE file
> >   mv: cannot move `FILE' to `file': No such file or directory.
> >
> > `FILE' has been deleted and 'file' does not exist.
> >
> > Regards,
> > Doug
> > -
> > For help on using this list (especially unsubscribing), send a
> message to
> > "gnu-win32-request@cygnus.com" with one line of text: "help".
> >
> 
> _________________________________________________________
> DO YOU YAHOO!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> -
> For help on using this list (especially unsubscribing), send a message to
> "gnu-win32-request@cygnus.com" with one line of text: "help".
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]