Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <8135911A809AD211AF6300A02480D175034944@IIS000.microdata.fr> From: Bernard Dautrevaux To: Bernard Dautrevaux , "'earnie_boyd AT yahoo DOT com'" , cygwin users Subject: RE: B20: mv deletes files on error (NT) Date: Tue, 30 Mar 1999 15:43:48 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id IAA05192 > -----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)" 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