Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: mv implemented as cp?!?!?!!? - problem!! X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 Date: Fri, 14 Sep 2001 11:53:21 +1000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: mv implemented as cp?!?!?!!? - problem!! Thread-Index: AcE8v8Pt1sQW1dUXRDy+aWWVixfPrAAAAc5A From: "Robert Collins" To: "Matthew O. Persico" , Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id WAA07539 *sigh.* This is in the archives. Cygwin uses win32 calls to do mv/rm etc. Win32 will copy-and-delete if there are _any_ locks present in the tree structure. The problem with perl is most likely a cache consistency problem - something is keeping a short lived lock on something in the directory - or the directory itself. Rob > -----Original Message----- > From: Matthew O. Persico [mailto:persicom AT acedsl DOT com] > Sent: Friday, September 14, 2001 12:10 PM > To: cygwin AT cygwin DOT com > Subject: Re: mv implemented as cp?!?!?!!? - problem!! > > > "Larry Hall (RFK Partners, Inc)" wrote: > > > > Hi Mark, > > > > You're best bet for finding a solution to this problem is > to debug Perl. > > This will give you the details you need to know how to > proceed with a > > proper solution. Certainly it is Perl that is controlling > the behavior > > in this case. > > No, not at all. From the orginal post: > > > 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? > > Who said anything about perl? I'm talking bash command line, as in: > > matthew AT HOME-NT-01 ~ > [3]$ type cd > cd is a shell builtin > > matthew AT HOME-NT-01 /usr > [4]$ cd /usr > > matthew AT HOME-NT-01 /usr > [5]$ type mv > mv is aliased to `mv -i ' > > matthew AT HOME-NT-01 /usr > [6]$ mv X11R6 X11R6.XFree.4.1.0 > > > -- > Matthew O. Persico > > http://www.acecape.com/dsl > AceDSL:The best ADSL in Verizon area > > -- > 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/ > > -- 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/