delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/12/04:47:29

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: <8C6D4989662C304087C58904BAB721A54B7393@Hermes.astrum.de>
From: Harald Kierer <Harald DOT Kierer AT astrum DOT de>
To: "'linda w (cyg)'" <cygwin AT tlinx DOT org>, cygwin AT cygwin DOT com
Subject: RE: strange mv behavior: mv <mydir> <mydir>
Date: Wed, 12 Feb 2003 10:47:10 +0100
MIME-Version: 1.0

Reproduced this:

----

[/t] $ mv lib lib
mv: cannot copy a directory, `lib', into itself, `lib/lib'

[/t] [1] $ mv lib Lib
mv: cannot copy a directory, `lib', into itself, `Lib/lib'

[/t] [1] $ mv --version
mv (fileutils) 4.1
Written by Mike Parker, David MacKenzie, and Jim Meyering.

Copyright (C) 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[/t] $ uname -a
CYGWIN_NT-5.0 RE0263 1.3.20(0.73/3/2) 2003-02-08 12:10 i686 unknown unknown
Cygwin

----

Actually it DOES copy the directory into itself!
I get a directory 'lib' inside my old 'lib' with the exact
same contents.
Supposed behaviour should be to do nothing..?

[snip]

> 	On lnx, I get:
> mv: cannot move `mydir' to a subdirectory of itself, `mydir/mydir'
> 
> Shouldn't I get a similar error on Windows?

I get those above.

[snap]

bye,
 harry

--
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