X-Recipient: archive-cygwin@delorie.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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=p7UMmNOtPiRyne/m
	Ry+TfoDelDWBD8ukSmrxuBLZgxXO1dscQoIWUMzXGWw1Elx+FyiLd+5eohD1shWT
	A1WCnZZx87xZOBYJQ1JLHtmaOQ4bjk/nCvKuPC7D8sB5nOGPBn7ji364MHM+Y+fI
	O8/4pJ32oU5xtxcNEpuj7em0Ez0=
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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=ErIVKBOYY/d7QRRaOuPUWq
	hMJxY=; b=Db4uY5CNKDeJSmjwfYrLOvxF8LcZEXTfIluxE6d4eLEIeogRlj+PA6
	p/Hk64j5kaDQ4rYUqpa2YeP4qfxUHj66g/W6HktC+3dnzhfTNKiYGt9+lNNoYwkO
	M8rIZObB5eWOYRsk+ovPjSOhN+mkDY4p/IgUFIxX2gTsg8pbJqvXc=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.1 spammy=privilege, H*UA:Bat!, H*F:D*ru
X-HELO: forward105j.mail.yandex.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1577470801;	bh=M9J8xbv/Mbct9foF77WdRQTH9EKozhO4+uc2yCSXBOs=;	h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date;	b=tHUtmoOiairgLMpSymKRu7OqWN5ew0g9EUGqDtSDtSkLZd0Je9hL8Il+tscRi8cS/	 8ybUTGTPkec9c3jJ7KmNh/9JBowEakefoMBwpjFQG4G5ilzgwN1dA7w2L8m/TAlR4Z	 QRtV5A3vkszba/PYpsS1cfDveCvjKrVjvtzHVGj4=
Authentication-Results: mxback25g.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Fri, 27 Dec 2019 21:11:55 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <1501621188.20191227211155@yandex.ru>
To: Jeff <cygwin@kosowsky.org>, cygwin@cygwin.com
Subject: Re: Any downside to using winsymlinks over cygwin-style symlinks?
In-Reply-To: <24070.7571.896562.93733@consult.pretender>
References: <24070.7571.896562.93733@consult.pretender>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Jeff!

> Based on the documentation and practical use of the Windows-style
> symlinks (winsymlinks) vs Cygwin-style symlinks, it seems to me that:
> 1. Winsymlinks have the advantage of working as symlinks/shortcuts
>    under both Cygwin and Windows Explorer while Cygwin links are
>    recognized only in Cygwin

True.

> 2. They both are basically text files with some MAGIC numbers and
>    attributes that allow them to be interpreted as symlinks

NOT true.
Windows native symlinks are actual FS objects.

> So, is there any *disadvantage* to always using Winsymlinks and indeed
> converting my old Cygwin-style links to Windows-style?

You can't create native symlinks as a member of Administrators group, even if
your account have the needed privilege.

> (Note: I can't use Windows Native symlinks because I don't have admin
> privileges on all my machines)

Exactly.

> Finally, where is the best place to set CYGWIN=winsymlinks?
> In .bash_profile?

If you can't use them, there's no reason to set this option, if you expect
interoperability between Windows and Cygwin.

With just winsymlinks set, Cygwin will try to create native symlink,
but failing that, it will create regular Cygwin symlink.

With winsymlinks:nativestrict set, Cygwin will try to create native symlink
and report failure instead of creating Cygwin symlink.

P.S.
I'm using winsymlinks:nativestrict personally, but I know implications and
well prepared to deal with them.


-- 
With best regards,
Andrey Repin
Friday, December 27, 2019 21:04:24

Sorry for my terrible english...


--
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

