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 From: Chris Faylor Date: Mon, 29 Mar 1999 00:56:59 -0500 To: David Dagon Cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: B20: mv deletes files on error (NT) Message-ID: <19990329005659.A2473@cygnus.com> References: <36FD516F DOT 45299E3E AT mindspring DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <36FD516F.45299E3E@mindspring.com>; from David Dagon on Sat, Mar 27, 1999 at 04:45:20PM -0500 I'm not 100% certain (and I can't check right now) but I think that this should not be a problem in recent snapshots. A net contributor supplied a patch to make "inode" generation case-insensitive. That should make mv capable of detecting this problem and disallowing it. -chris On Sat, Mar 27, 1999 at 04:45:20PM -0500, David Dagon wrote: > I had a group of files that started with capital letters. I moved >them to a new directory, and bash renamed them to lower case >letters. No matter, I thought, I'll just rename them. That's >when I noticed the files were being deleted by bash: > >bash-2.02$ ls >abstracttree.java node.java binarytree.java >splaytree.java treetype.java > >bash-2.02$ mv abstracttree.java Abstracttree.java >mv: cannot move `abstracttree.java' to `Abstracttree.java': No such file >or directory > >bash-2.02$ ls >binarytree.java splaytree.java treetype.java >node.java > >bash-2.02$ rename node.java Node.java >bash: rename: command not found > >bash-2.02$ mv node.java Node.java >mv: cannot move `node.java' to `Node.java': No such file or directory > >bash-2.02$ ls >binarytree.java splaytree.java treetype.java > >Is this a bug? If this behavior is my failure to set some variable, it >seems to be a very dangerous trap to new users. > >Cheers, > >David Dagon >david DOT dagon AT mindspring DOT com > > >-- >Want to unsubscribe from this list? >Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com > -- cgf AT cygnus DOT com http://www.cygnus.com/ -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com