delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/12/20:31:35

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Gerrit P. Haase" <gp AT familiehaase DOT de>
Organization: Esse keine toten Tiere
To: "Matthew O. Persico" <persicom AT acedsl DOT com>
Date: Thu, 13 Sep 2001 02:22:04 +0200
MIME-Version: 1.0
Subject: Re: mv implemented as cp?!?!?!!?
Reply-to: gp AT familiehaase DOT de
CC: cygwin AT cygwin DOT com
Message-ID: <3BA0184C.28676.BF37B3C@localhost>
In-reply-to: <3B9FE747.8BBA7EF3@acedsl.com>
X-mailer: Pegasus Mail for Win32 (v3.12cDE)
X-Hops: 1

Matthew O. Persico schrieb am 2001-09-12, 18:52:

>I have a /usr/X11R6 directory that I wanted to get out of the way. So I
>renamed it like this:
>
>cd /usr
>mv X11R6 X11R6.XFree.4.1.0
>
>It is taking multiple minutes. Looking at it in Windows Explorer, I see
>both X11R6 and X11R6.XFree.4.1.0 in existance at the same time.
>
>Is mv implemented as cp and del?!?!. Why not just rename the file, a'la
>UNIX, or even Windows? Or am I really missing something?

It works as you would expect, but only if there is no file opened in the 
dir you want to rename.
You can try this.
Create a dir and fill it up.
Make sure that there is no file opened and you're not looking in any
subdirectory with explorer or another shell window.
Then rename it.
And then do the opposite, open one file in the renamed directory and
mv it back to its old location, then it will be copied.
It is a typical windows behaviour that an opened file cannot be deleted...

Gerrit


-- 
=^..^=

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