public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>
To: Sylvain Petreolle <spetreolle@yahoo.fr>, cygwin@cygwin.com
Cc: spetreolle@yahoo.fr
Subject: Re: mv problem
Date: Thu, 02 May 2002 07:54:00 -0000	[thread overview]
Message-ID: <4.3.1.2.20020502104654.0246ccb8@pop.ma.ultranet.com> (raw)
In-Reply-To: <20020502132242.10650.qmail@web10105.mail.yahoo.com>

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@rfk.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/

  reply	other threads:[~2002-05-02 14:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-02  6:22 Sylvain Petreolle
2002-05-02  7:54 ` Larry Hall (RFK Partners, Inc) [this message]
2002-05-02 23:17   ` Sylvain Petreolle
2002-05-03  8:46     ` Larry Hall (RFK Partners, Inc)
2002-05-03  9:21     ` Randall R Schulz
2002-05-03  9:29       ` Larry Hall (RFK Partners, Inc)
2002-05-03  5:58   ` Jason Tishler
2002-05-03  8:53     ` Larry Hall (RFK Partners, Inc)
2002-05-03  9:08       ` Jason Tishler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4.3.1.2.20020502104654.0246ccb8@pop.ma.ultranet.com \
    --to=lhall@rfk.com \
    --cc=cygwin@cygwin.com \
    --cc=spetreolle@yahoo.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).