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:from:to:reply-to:subject:message-id:date :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=bUcQNcx0h2ukE4YlTtK9WOh0itzJwHqRev9l+RGkypRs9Zdv6CfCx PTRJEsnENNhUh6bt3oU8yd+AhTKaJHGGLzxEG0rtpb9OSZg3K46YfcQ8PHIVVHMh Src6l3nt/Utb+IUOSBLsgIjxpm3HaWZXGdTWx6ujUg5hh/onnIWqAE= 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:from:to:reply-to:subject:message-id:date :mime-version:content-type:content-transfer-encoding; s=default; bh=/je62FWbGwYVoNn6loDt0ze01eA=; b=GW1enKJwHsGwGJGk3XISgMVKnYQI 5VczcVk7tIbpQCf6DnDpTH0dqMgCpiE/NTuaKOxSTL1UlQQk8FL4rrtYD7bopulw Q0QHmhPV3w19AvlJb2wMV/fvFJa+1NSOdOm4/hKpMTFUwgqNA7i0MKkwns9eMXkW z/1hK+yO+048DyI= 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-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,FREEMAIL_REPLYTO,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=HX-Languages-Length:1035, HX-Received:4c26, H*UA:WOW64, H*u:WOW64 X-HELO: mail-pg1-f177.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:reply-to:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=E85nW6G+rUqXGZFTasF+i6GheWyvd3loR5CdLb9oLkY=; b=sMbnQQ6H9rpPtFCj82ay0ThAyNGSlHRdRweiNzHdVK+KLWLh9bnISb0BLdlyMmqI2M uwUgrwbCaq1fh23KRAzqKudOKExiBAbHkPtAgwjIBdEjdlSmtqFL+vnt2fFfxNJ9bbmG vGp2MAoSCr8R7FsJSRd3PyzznfZjc8OOH4QmoU1/CcdmlRz5tbJKsVXn8b3zMxIMtQoa dUEyD2N+arqDLyh+NSHXWGMroUBTXT8l+D81JPfIzBXQsnL/VNQTnMlbaqigkqxLqeKo RoTYxF9JwQ0Ar8za+R2sYqZSYeIwZxvf/AK9gGQptf5LwRXZyZfssAmjQcAsCQ0FvLvZ lOqg== From: "Matt D." To: cygwin AT cygwin DOT com Reply-To: codespunk+cygwin AT gmail DOT com Subject: Copying of symbolic links not working as expected Message-ID: Date: Sun, 21 Apr 2019 06:07:32 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit I'm experiencing a discrepancy between Linux cp and Cygwin cp when copying native symbolic links: Test/ FolderA/ 123/ 456/ -> 123/ On Linux I can: > cp -r FolderA/ FolderB/ > ls -l FolderB/ total 0 drwxrwxr-x. 2 account group 45 Apr 21 05:47 123 lrwxrwxrwx. 1 account group 4 Apr 21 05:47 456 -> 123/ Entire folder copied with relative symblic link paths preserved. *** (starting from the original state -- rm -rf FolderB/) *** > mkdir FolderB/ > cp -r FolderA/456 FolderB/ > ls -l FolderB/ total 0 lrwxrwxrwx. 1 account group 4 Apr 21 05:47 456 -> 123/ Note that "456 -> 123/" in "FolderB/" is a BROKEN link. This is DESIRABLE as it preserves my curated symbolic links with their relative paths. On Cygwin: > cp -r FolderA/ FolderB/ ... Works as expected But: > cp -r FolderA/456 FolderB/ ERRORS: cp: cannot create symbolic link 'FolderB/456': No such file or directory I know that there is no file or directory there. I'm trying to copy one to this location. -- 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