delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/02/10:54:23

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.20020502104654.0246ccb8@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
Date: Thu, 02 May 2002 10:51:45 -0400
To: Sylvain Petreolle <spetreolle AT yahoo DOT fr>, cygwin AT cygwin DOT com
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: mv problem
Cc: spetreolle AT yahoo DOT fr
In-Reply-To: <20020502132242.10650.qmail@web10105.mail.yahoo.com>
Mime-Version: 1.0

At 09:22 AM 5/2/2002, Sylvain Petreolle wrote:
>Hi all,
>
>I got a problem when running mv :
>
>i have the directory abc and want to rename
>it as Abc (or something that changes the
>capitalisation only).
>
>I get the following result :
>
>$ mv abc Abc
>mv: cannot create directory
>`Abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc/abc
>/abc/abc/abc/abc/abc': Invalid argument


Hm, I don't see that here:

#mv abc Abc
mv: cannot move `abc' to a subdirectory of itself, `Abc/abc'

What version of Cygwin and mv are you using?  What does the directory 
structure of "abc" look like?

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').  I can't say why you got the result
you did however.



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