delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/05/16/17:50:21

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=JBfF8aGqyVkRkoBsATjiXCT1qcebOXn9BV5oVHu4+kr
yQpqrExFw1u45u8LvT4i/M4eZUTqTKBjjgiKD2IsEmbl7W3DqJFth9FZq/n9TztP
X7fyzdTGLZ0D1X+epgIM5DJAoz9uHxIYx3tRzDPyCOcgv4am4N+8DcF9w87aCNtE
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=jNxMvkDyb1DgEFmq47uFzptb5vk=; b=sRK1vsXswC7ftAKd9
8RRkRI1OF0HL2pRBFwOjX9QF1F1URYwMdQMGqX7cFIkJphNRCiQrYSzViSXlBo5f
NRa/pH3caw/6PEGPUp2rSc9sAMAK1RB9w1pAK71aDj/tV82i4te8ek3RH42nTnIr
xlu6HYzM/jSGJQGusXAR2DTTkM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Desktop, Settings, Documents, samba
X-HELO: Ishtar.sc.tlinx.org
Message-ID: <573A407F.3090408@tlinx.org>
Date: Mon, 16 May 2016 14:49:51 -0700
From: Linda Walsh <cygwin AT tlinx DOT org>
User-Agent: Thunderbird
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: cp: skipping file 'file', as it was replaced while being copied
References: <CADex0xyynMbb9oi2uD_OFT7No-OTLM+Uxf3k+i50XUu-ggA9rQ AT mail DOT gmail DOT com>
In-Reply-To: <CADex0xyynMbb9oi2uD_OFT7No-OTLM+Uxf3k+i50XUu-ggA9rQ@mail.gmail.com>
X-IsSubscribed: yes

Kenneth Wolcott wrote:
> Hi;
> 
>   cp: skipping file 'file', as it was replaced while being copied
> 
>   I have several mounted partitions on my Windows machine (64bit Windows 7).
> 
>   Copying a file using cygwin cp , via mintty, from a mounted drive to
> a local path, I frequently get the aforementioned message.
> 
>   Is the partition not properly understood by Cygwin?
> 
>   I really dislike having to use Windows in the first place, at least
> Cygwin, when it works, makes it more bearable.
> 
> The actual command was (line broken by backslash by me to make it more
> readable):
> 
>  cp /cygdrive/p/Engineering/Ken_Wolcott/new_Mobility_Audit_script/try1.pl \
> /cygdrive/c/Documents\ and\ Settings/kwolcott/Desktop/files4trombone/.
> 
---
Does your 'cp' have any aliases or functions that get run?

For example if you have a "cp -a" or "cp -au" as an alias, this
can cause icky problems copying to or from a samba network drive
from or to a local drive.

I don't know if it is fixed in the latest tree, but I have
a feeling it is not, because it's dang hard to fix.  But it has to
do with maintaining files that are *linked* where it updates one of
the linked files, then tries to copy the other, and finds it gone or
finds some different answer for the link's updating due to it already
having been copied over via the earlier linked-file.

This can also happen due to having 2 differently-cased versions of the
same file (as windows sees them as 1 file and tries to get rid of the 
copy).  It can be reproduced on linux with any fs that allows
case-insensitivity (but may also be case preserving).  Besides xfs
having that for ascii since before xfs was on linux, I think 
some other FS's, zfs, maybe, and some planned future extensions
to existing file systems.   Again, don't know the status of this
bug either, but it might be related to how the case-insensitivity is
done in the file system implementing it.

Why do you have 'documents and settings' on your PC?  That went away
with XP and was replaced by 'Users'.  Is the local file system
NTFS?


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019