delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/03/10/18:05:24

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 0D251385780F
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=yandex.ru
Authentication-Results: sourceware.org;
spf=pass smtp.mailfrom=anrdaemon AT yandex DOT ru
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
t=1615417503; bh=lZNFO0EQPVtc35OdKaLVLkMQmEogSiC1btRQdB6pr4M=;
h=Subject:To:From:Message-ID:Date:Reply-To;
b=qEvMW2ZxdYhzjun9LyT67c1Ur2PkM+T0ESirosXK2ZfLmnwpmUyMVRTQg8Qtctl/5
ynIVKT4kEfYpDv97vbUKzM0wU807vYrsHrUx8J9wDs7mWJgD6pQ53GybMQyefloPii
9O2OEvXWYHcWmdGh+nYAqo2qA7uEAjgsIiL3nq/c=
Authentication-Results: sas1-01023434254d.qloud-c.yandex.net;
dkim=pass header.i=@yandex.ru
Date: Thu, 11 Mar 2021 01:51:58 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
X-Mailer: The Bat! (v6.8.8) Home
X-Priority: 3 (Normal)
Message-ID: <837599661.20210311015158@yandex.ru>
To: All <cygwin AT cygwin DOT com>
Subject: Different symlink resolution in native console vs. terminal
MIME-Version: 1.0
X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT,
RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no 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>
Reply-To: cygwin AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

Greetings, All!

Win 7 Pro fully upgraded.

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.


-- 
With best regards,
Andrey Repin
Thursday, March 11, 2021 1:33:36

Sorry for my terrible english...

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

- Raw text -


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