delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/11/02/10:16:42

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=nbpCv8sGkS1sSE/z
2Bjs/y43UqTtruTFClf9vckr26AW+MEifpOcbOR1x/x5dLvOy3qIYrfwp+tbEnDv
juHqnP/66YorL0BLOJ8hi+OTQwGSionO2inyL1l7/SFiHPiLTJwcaaE1cYYqUPkF
hsx4ayhuT/WkGacPWPyp2hpcPSk=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=PejrMByqrhUzvhSVk0NM28
4KFi8=; b=IjD9Yu3qfHXED4Sh95u+RcYx3vB9Uy0612eSLiCKe1cpqWYTwmD0cB
LwX0eJGgew7eSjtDc8vfUso6OpZRFq6xIfQPcvXAVv+sQ3GwWcRPu+m3X3ocAqzQ
ZwWtFSAEKrI3XuXConhHj959+khMXwjoWQZFvyun8SbxGPQ0owcS0=
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=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=sad
X-HELO: mail-it1-f177.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=pXde3cdhhauQRsVBPUll+L0ljrX9TKq+175hy8wq0Cc=; b=NCNLPpZw5d4f4tr8uL1FBC1HJ2Mm8yJFX7IkLJ5S58eCZ5nTZLNdBtDdOkpqr0gZAF fLWJHIpfYzUwQvW7e1PWqJwPxVN3FTGrR4UO0A1Y6TmGNTUNNFiC7QJA//eZzdr/SzPV 5qyRmqgq55DMWK9dxrP2/Ig2InaMU/aM3IHnEVh66Wf1uq4/2pKH/6DN5gXtJ/WpapP2 Ei0ZLxEg1sSVlJLj1yfyzr2QtW5+fGtxd2kCFiQ4hpOD79vEUG1Q9TaDylnsMRrkbGyE gJwJHmy85pidNkzGqXt90dQb8JAyNvnQxUAs5qyJVjIfDXL+E8nmRSlT+5W8Eh9Oe3gq SQUA==
Subject: Re: Stumbled upon relative name resolution across symlinks
To: cygwin AT cygwin DOT com
References: <123348672 DOT 20181102013908 AT yandex DOT ru>
From: cyg Simple <cygsimple AT gmail DOT com>
Openpgp: preference=signencrypt
Message-ID: <818ea723-d84a-6751-a3a2-8337aa0b12ba@gmail.com>
Date: Fri, 2 Nov 2018 10:15:38 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <123348672.20181102013908@yandex.ru>
X-IsSubscribed: yes

On 11/1/2018 6:39 PM, Andrey Repin wrote:
> Greetings, All!
> 
> $ pwd
> /home/anrdaemon/Documents/NIX/CA-tutorial/test
> 
> $ ls -ld bin ca-profile
> lrwxrwxrwx 1 anrdaemon None  61 ноя  2 01:15 bin -> /home/anrdaemon/Documents/NIX/CA-tutorial/svn-working/scripts
> -rwx--x--x 1 anrdaemon None 588 дек 24  2017 ca-profile
> 
> $ cat bin/../ca-profile
> cat: bin/../ca-profile: No such file or directory
> 

Try ls `bin/../`

You'll see a listing of
/home/anrdaemon/Documents/NIX/CA-tutorial/svn-working/.

> $ cat $( realpath -Le "bin/../ca-profile" )
> # @version $Id: ca-profile 82 2014-02-08 05:24:12Z anrdaemon $
> ...
> 
> In simpler words, the bin directory is symlinked from elsewhere.
> realpath -Le resolves correctly, but all other filesystem functions fail.
> 
> I vaguely recall that there was some discussion on the matter, but search
> returns too many results, can't read them all.
> My question, basically: is this expected way of things?

The answer is yes it is expected and works the same on Linux.

> If so, I'd just workaround it. Sad but doable.

Don't be sad just do it. ;p

-- 
cyg Simple

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