Mail Archives: cygwin/1999/03/30/08:47:41
> -----Original Message-----
> From: Bernard Dautrevaux [mailto:DAUTREVAUX AT microprocess DOT com]
> Sent: Tuesday, March 30, 1999 12:33 PM
> To: 'earnie_boyd AT yahoo DOT com'; cygwin users
> Subject: RE: B20: mv deletes files on error (NT)
>
>
> > -----Original Message-----
> > From: Earnie Boyd [mailto:earnie_boyd AT yahoo DOT 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 AT rfk DOT 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 AT microprocess DOT com
b DOT dautrevaux AT usa DOT net
--------------------------------------------
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
- Raw text -