delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/02/29/21:06:19

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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=r9xp60d6ykTp7lGu
Zs4sSH/qsYfAI0Jp1nHWlitw9MPeAV4cokNrK1GhRX63VR9rUbCVcBmu3IuRsouj
r64P8lq4iRtBJPjEFwORFD39+7OyqZPCT+cfR6hSjFIM+DgPct2HAsPbTvKFKylQ
c6klcp4fFA5j7QTWX39rCHTsoHk=
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=9X39255mUlnW7rHeX8qdNE
WKtqU=; b=VmDAPhVT5Db2ubPoB4VjxOZqNf0pQLntqWN0lXFtvXncdbDpqynRvN
JmlJPWhB6XLSwmwQdIeDDgz+ryaH5wc3LxSI6NbtMEDMcbZuKDArkCTUvwKLFpVO
GAJuLNW9ifXPk0Oq9ohWaK4w9oiSfTDl6Kqj+ZnCkyQpoaCcZTLsk=
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-Spam-SWARE-Status: No, score=-5.0 required=5.0 tests=BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,KAM_THEBAT,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=H*UA:Bat!, H*r:smtp, H*r:build, UD:ru
X-HELO: forward101o.mail.yandex.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1583028301; bh=qX9ER7eCTObF8N9RrGpW3eSSNHHQbmTkWHpP7Vli2hM=; h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date; b=AdKWizF/FE1hLPXA59A40e/sFIrVzSInNi+JiM5qKDX8hlHRXgQ5xpfxih0NE9qOO cIdcLdOPXv48UVvQFEwwR2R7mHrU5utsVfknigMdZIuQQ5zgPgHcgBq/8hS2S1uQn5 1VqIEi7UEguWb8T/i/wLB8/vBG8ZHKBN0HOqvc1w=
Authentication-Results: mxback18j.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Sun, 1 Mar 2020 04:52:39 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <781797215.20200301045239@yandex.ru>
To: Rainer Emrich <rainer AT emrich-ebersheim DOT de>, cygwin AT cygwin DOT com
Subject: Re: Change in logical link behaviour
In-Reply-To: <30792264-c452-7ea2-c83f-f368322387ea@emrich-ebersheim.de>
References: <30792264-c452-7ea2-c83f-f368322387ea AT emrich-ebersheim DOT de>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, Rainer Emrich!

> I try to reliably determine if native Windows symlink are working for a
> current cygwin environment in a shell script.

> Therefor I used a powershell snipped:

> mkdir asdfgh
> ln -s asdfgh/ asdfgh-1
> powershell "& {Get-Item -Path asdfgh-1 | Select-Object}"

> On cygwin 3.0.7 the output is as follows:


>     Directory: D:\cygwin\home\rainer\temp


> Mode                LastWriteTime         Length Name
> ----                -------------         ------ ----
> d----l       29.02.2020     13:58                asdfgh-1

> On cygwin 3.1.4 I get:


>     Directory: D:\cygwin\home\rainer\temp


> Mode                LastWriteTime         Length Name
> ----                -------------         ------ ----
> d----        29.02.2020     13:58                asdfgh-1

> So now there is no indication that this is a link. Is this new behaviour
> intended or a bug?

> I did not try on Windows 10, I'm still on windows 7.

I get the same behavior is not using Cygwin to create the link at all, this is
probably a change in how Cygwin interprets symlinks.


-- 
With best regards,
Andrey Repin
Sunday, March 1, 2020 4:51:46

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

- Raw text -


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