public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andrey Repin <anrdaemon@yandex.ru>
To: All <cygwin@cygwin.com>
Subject: Different symlink resolution in native console vs. terminal
Date: Thu, 11 Mar 2021 01:51:58 +0300	[thread overview]
Message-ID: <837599661.20210311015158@yandex.ru> (raw)

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


             reply	other threads:[~2021-03-10 23:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-10 22:51 Andrey Repin [this message]
2021-03-16 13:34 ` L A Walsh
2021-03-19 13:29   ` Andrey Repin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=837599661.20210311015158@yandex.ru \
    --to=anrdaemon@yandex.ru \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).