This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
RE: B20: mv deletes files on error (NT)
- To: Bernard Dautrevaux <DAUTREVAUX@microprocess.com>, "'earnie_boyd@yahoo.com'" <earnie_boyd@yahoo.com>, cygwin users <cygwin@sourceware.cygnus.com>
- Subject: RE: B20: mv deletes files on error (NT)
- From: Bernard Dautrevaux <DAUTREVAUX@microprocess.com>
- Date: Tue, 30 Mar 1999 15:43:48 +0200
> -----Original Message-----
> From: Bernard Dautrevaux [mailto:DAUTREVAUX@microprocess.com]
> Sent: Tuesday, March 30, 1999 12:33 PM
> To: 'earnie_boyd@yahoo.com'; cygwin users
> Subject: RE: B20: mv deletes files on error (NT)
>
>
> > -----Original Message-----
> > From: Earnie Boyd [mailto:earnie_boyd@yahoo.com]
> > Sent: Tuesday, March 30, 1999 1:24 AM
> > To: cygwin users
> > Subject: Re: B20: mv deletes files on error (NT)
> >
> >
> > --- "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com> wrote:
> > --8<--
> > > Is there any other point that's been missed?
> > --8<--
> >
> > Can you think of others besides mv? cp is out of the running
> > as you can't copy
> > a file ontop of itself and in win32 foo and Foo are the same file.
> >
>
> Yes, *any* program that looks at inode numbers to determine
> if two files
> are the same.
>
> If I correctly understand this thread it seems the problem is
> that under
> cygwin Foo and foo have different inode numbers :-<; why not base the
> inode number for a file to its first sector (or cluster)
> number? (I know
> this is simple in FAT, its in the directory entry, and it should be
> quite readily available under NTFS also).
>
Ooops... I just realize I was reasonning backwards... mv has the problem
because the inode numbers are the same, not the other way round :-)
Sorry for the consumed bandwidth.
Obviously the problem is that we *have* to adapt any program that expect
the underlying file system to be case sensitive. "mv" was just working
by error before :-(; however it is unfortunate that "mv" delete files
when moving foo to Foo. When the i-node numbers are equal, mv should
just do nothing (after all what you request is already true: "Foo" can
be used to refer to what was once "foo") or change file name case, but
either returning an error (quite puzzling :-() or silently deleting the
file (*very* annoying :-<) is an error in "mv".
Regards,
Bernard
--------------------------------------------
Bernard Dautrevaux
Microprocess Ingéniérie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel: +33 (0) 1 47 68 80 80
Fax: +33 (0) 1 47 88 97 85
e-mail: dautrevaux@microprocess.com
b.dautrevaux@usa.net
--------------------------------------------
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com