From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123378 invoked by alias); 2 Nov 2018 14:15:49 -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 123157 invoked by uid 89); 2 Nov 2018 14:15:45 -0000 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 Received: from mail-it1-f177.google.com (HELO mail-it1-f177.google.com) (209.85.166.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 02 Nov 2018 14:15:42 +0000 Received: by mail-it1-f177.google.com with SMTP id p11-v6so1598194itf.0 for ; Fri, 02 Nov 2018 07:15:42 -0700 (PDT) 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== Return-Path: Received: from [192.168.0.3] (d47-69-109-131.nap.wideopenwest.com. [69.47.131.109]) by smtp.gmail.com with ESMTPSA id i145-v6sm285409ita.26.2018.11.02.07.15.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Nov 2018 07:15:39 -0700 (PDT) Subject: Re: Stumbled upon relative name resolution across symlinks To: cygwin@cygwin.com References: <123348672.20181102013908@yandex.ru> From: cyg Simple Openpgp: preference=signencrypt Message-ID: <818ea723-d84a-6751-a3a2-8337aa0b12ba@gmail.com> Date: Fri, 02 Nov 2018 14:15:00 -0000 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> Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2018-11/txt/msg00029.txt.bz2 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