delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/03/11:54:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <4.3.1.2.20020503114437.016e65d0@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
Date: Fri, 03 May 2002 11:51:41 -0400
To: Jason Tishler <jason AT tishler DOT net>, cygwin AT cygwin DOT com
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: mv problem
In-Reply-To: <20020503130527.GA3216@tishler.net>
References: <4 DOT 3 DOT 1 DOT 2 DOT 20020502104654 DOT 0246ccb8 AT pop DOT ma DOT ultranet DOT com>
<20020502132242 DOT 10650 DOT qmail AT web10105 DOT mail DOT yahoo DOT com>
<4 DOT 3 DOT 1 DOT 2 DOT 20020502104654 DOT 0246ccb8 AT pop DOT ma DOT ultranet DOT com>
Mime-Version: 1.0

At 09:05 AM 5/3/2002, Jason Tishler wrote:
>Larry,
>
>On Thu, May 02, 2002 at 10:51:45AM -0400, Larry Hall (RFK Partners, Inc) wrote:
> > As you can see, you cannot rename file differing only by case.  This is a 
> > Windowsism.  Sorry.  Complain to Bill if you don't like it! ;-)  You'll
> > need to do this as a two step process (i.e. move 'abc' to a different name
> > temporarily and then move it to 'Abc').
>
>The above is not true:
>
>     C:\>dir
>     [snip]
>     05/03/2002  08:48a      <DIR>          bar
>     05/03/2002  08:47a                   0 foo
>     ...
>
>     C:\>ren bar BAR
>     ren bar BAR
>
>     C:\>ren foo FOO
>     ren foo FOO
>
>     C:\>dir
>     [snip]
>     05/03/2002  08:48a      <DIR>          BAR
>     05/03/2002  08:47a                   0 FOO


Well, if you mean that the issue is not, strictly speaking, a Windows issue,
there's some validity to that statement.  Given all the history of "mv"
functionality, I personally hesitate to suggest that there's a patch to 
"mv" that will make this possible without breaking something else that's
important for "mv" in Cygwin/Windows (though I don't discourage others from 
trying if they are so inclined).  It is Windows, in general, that enforces 
case-insensitivity of it's file systems though, which doesn't help.  Of 
course, you've also pointed out that there is an alternative to "mv" in 
"DOS-land" that allows this operation to be done in one step, for those that 
prefer such a thing! ;-)



Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019