delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DMARC-Filter: | OpenDMARC Filter v1.3.2 sourceware.org 36166385800F |
Authentication-Results: | sourceware.org; |
dmarc=none (p=none dis=none) header.from=tlinx.org | |
Authentication-Results: | sourceware.org; spf=pass smtp.mailfrom=cygwin AT tlinx DOT org |
Message-ID: | <6050B3DF.2090805@tlinx.org> |
Date: | Tue, 16 Mar 2021 06:34:23 -0700 |
From: | L A Walsh <cygwin AT tlinx DOT org> |
User-Agent: | Thunderbird 2.0.0.24 (Windows/20100228) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com, Andrey Repin <anrdaemon AT yandex DOT ru> |
Subject: | Re: Different symlink resolution in native console vs. terminal |
References: | <837599661 DOT 20210311015158 AT yandex DOT ru> |
In-Reply-To: | <837599661.20210311015158@yandex.ru> |
X-Spam-Status: | No, score=-2.4 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, |
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 | |
X-Spam-Checker-Version: | SpamAssassin 3.4.2 (2018-09-13) on |
server2.sourceware.org | |
X-BeenThere: | cygwin AT cygwin DOT com |
X-Mailman-Version: | 2.1.29 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
Sender: | "Cygwin" <cygwin-bounces AT cygwin DOT com> |
On 2021/03/10 14:51, Andrey Repin wrote: > Running `pwd -P` or `readlink -e .` in a specific directory from native > terminal provide unresolved answers. > > The directory $HOME/Documents/EVE is a symlink pointing to $HOME\Documents\Games\EVE. > > When running either command inside the directory from native terminal, the > result is literally /home/Documents/EVE, but when running the same command > from mintty inside same directory, the results may vary. > > $HOME/Documents/EVE or $HOME/Documents/Games/EVE (which is expected answer). > It also seems, there are results difference between `bash -l` `and bash -i` > and `pwd -P` and `readlink -e .`. > Generally, "pwd" is more correct. > 1) When you look at the processes(native v mintty), are both the same #bits? 2) Can you reproduce this with any other dir? Both Documents and Games have multiple copies due to the public docs+games are in the docs+games library (along with user versions). Maybe the winterm is picking up a different file? 3) do you actually have a directory named '$HOME' or is it a real dirname? 4) the symlink is in 'EVE' in both cases, yes? Can you copy 'EVE' (the symlink) to a dir like /tmp and do they resolve differently there? I think one or both of those dirs have a GUID associated with them, maybe one is using a different GUID than the other? I also have Win7x64 but have never seen them misbehaving... How was your link made? -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |