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:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=CR Z9BCmq5Ou+S7ndlwL+DCumXpMBkQrBaQ3WdzTAzHPwGWIhaYuGLEfQFKFy0kHWQ8 0yK8PRvKN/UCQHLwEy+mBY9t82fSJssG7pRi7/AkAd4U6mCZF6p9ecVEGDKF5LYX PR8I+/unhOPjDNcJfDQjcK0DT9hRwU5SeqFQ+PIh4= 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:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=Fl7irXZ9 GW5v365s2nvyOr/k8gs=; b=SnP2d0m394QXfUearwXRpAQDFAciXakT2N5cDXjS KQFEK35l+zP0Pa2WjyjiFviTCbjanCxRfDBgx3b2+rcKRYWr2YeS5M/L8Pw3MQV8 js2+HU0H+TXPjN/wweX8dx1hCkXbZ9X8t6cNCm5jc5M9Zr4XnelulF/DZZ0YI53a h7M= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-0.6 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=linda, Linda, Walsh, walsh X-HELO: mail-yw0-f178.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=SXz3k4tnkhu7gVuSQZoHbT0ZCZioj4PBv+Bx+q0jX7E=; b=Hb7+clZbo/4SIsbagRZtcJo6rb95kAdIWEQ4ebrul2LMM7qScGLTvP8cQ5spgepCDM eLOY+QuJyfudUYnC9LpLlyK9OYqDzLrGB6NxKfEqzoIOiV9G5UUeYOBNpqt7lQ7edQzh e6xD4VEZOxfcHqfOC/ioS1y63UBdCYPeC1oAWqJtxD6zXf/VRtF67IEwuZMojCwid/5r PHMbYNv5taB+MjJdDR4//FQyExUuP8TyVU8SPxUgWVj0eQZq0xiNSfL+UmOu6Q8bXPbv /CE9mbjTyzS1G5OqmF2SxhpsLOnOJpysB13EQTD2kG3Kq7sAhZ7EGSgrZpyk9ePTDuNV B60A== X-Gm-Message-State: AOPr4FXjbIvKSAcJuYOYwiHierr4sJvR+ihp3qUyFEdv5+VAGyQ0Db63XjEuTBjbCKkPoRzdLfV2FfITK7Apng== MIME-Version: 1.0 X-Received: by 10.129.91.132 with SMTP id p126mr17385435ywb.188.1463461889938; Mon, 16 May 2016 22:11:29 -0700 (PDT) In-Reply-To: <573A407F.3090408@tlinx.org> References: <573A407F DOT 3090408 AT tlinx DOT org> Date: Mon, 16 May 2016 22:11:29 -0700 Message-ID: Subject: Re: cp: skipping file 'file', as it was replaced while being copied From: Kenneth Wolcott To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes On Mon, May 16, 2016 at 2:49 PM, Linda Walsh wrote: > 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? 1. I do think that the problem could be caused by have mixed-case files in a case-insensitive partition.. 2. I most often use the full path for cp, mv, rm, etc to avoid customized behavior, so I don't think that's it. 3. I see that the "Documents and Settings" is a symlink, so I removed it; thanks for mentioning that. Thanks, Ken -- 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