From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 83969 invoked by alias); 6 Sep 2018 08:52:39 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 78413 invoked by uid 89); 6 Sep 2018 08:46:31 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-spam-relays-external:sk:NAM02-S, CYGWIN, HX-HELO:sk:NAM02-S, H*RU:sk:NAM02-S X-HELO: NAM02-SN1-obe.outbound.protection.outlook.com Received: from mail-sn1nam02on0105.outbound.protection.outlook.com (HELO NAM02-SN1-obe.outbound.protection.outlook.com) (104.47.36.105) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 06 Sep 2018 08:46:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purdue0.onmicrosoft.com; s=selector1-purdue-edu; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eH2zBXUHTaQSKgznTg5hqR4G4lvKvxVBYAskw2v6Af0=; b=fMoTuSrJSI7NiJHUssxjoYavcTG22m28itw/2qFwCPMijaxHBRsTyHYSWkfz0Pp9or6HgRVny4g0IFacBLN7huwu1Nn/8PVDsvrmQfR4PC1N290p0OSKA5uEHI5FSH7x4gO3ZYY5RQVhP6SKv2LnpiAxfGDW8FFOeUJ0NLC1rkg= Received: from MWHPR22MB0288.namprd22.prod.outlook.com (10.173.53.144) by MWHPR22MB0592.namprd22.prod.outlook.com (10.172.171.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.18; Thu, 6 Sep 2018 08:46:26 +0000 Received: from MWHPR22MB0288.namprd22.prod.outlook.com ([fe80::cc74:5470:cc76:3bb5]) by MWHPR22MB0288.namprd22.prod.outlook.com ([fe80::cc74:5470:cc76:3bb5%12]) with mapi id 15.20.1122.009; Thu, 6 Sep 2018 08:46:25 +0000 From: Paul Townsend To: "cygwin@cygwin.com" CC: Paul Townsend Subject: Semantic difference with/without CYGWIN=winsymlinks:nativestrict Date: Thu, 06 Sep 2018 08:52:00 -0000 Message-ID: authentication-results: spf=none (sender IP is ) smtp.mailfrom=aab@purdue.edu; received-spf: None (protection.outlook.com: purdue.edu does not designate permitted sender hosts) MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-SW-Source: 2018-09/txt/msg00115.txt.bz2 Attempts to make symlinks are handled differently depending on (1) whether = or not the target file pre-exists and (2) whether or not CYGWIN=3Dwinsymlin= ks:nativestrict is exported. Actually, 'ln' seems to require the pre-exis= tence as if it were a hard link attempt when CYGWIN is defined. FWIW - 'l= n' on Ubuntu 18.04 on WSL (Windows Subsystem for Linux) allows the target t= o be nonexistent. The following is a very simplistic example: $ unset CYGWIN $ rm a b $ ln -s a b $ ls -l a b ls: cannot access 'a': No such file or directory lrwxrwxrwx 1 aab None 1 Sep 6 03:45 b -> a <=3D<=3D< not a "real" W= indows type symlink $ export CYGWIN=3Dwinsymlinks:nativestrict $ rm a b $ ln -s a b ln: failed to create symbolic link 'b': No such file or directory $ rm a b rm: cannot remove 'a': No such file or directory rm: cannot remove 'b': No such file or directory $ touch a $ ln -s a b $ ls -l a b -rw-r--r-- 1 aab None 0 Sep 6 03:55 a lrwxrwxrwx 1 aab None 1 Sep 6 03:55 b -> a $ rm a b Found above when I downloaded the source for 'bash-4.4' and 'cygport'/'tar'= attempted to make the symlink bash-4.4/ChangeLog -> [bash-4.4/]CWRU/changelog which did not yet exist. The error message is a bit confusing but it impli= es that the destination must pre-exist in order for the symlink to be made.= FWIW - With CYGWIN exported as shown above, 'ln' does create real symlink= s as verfied by Windows 10 File Explorer. -- Thanks -- 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