bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #57914] abspath does resolve symlink


From: Paul D. Smith
Subject: [bug #57914] abspath does resolve symlink
Date: Tue, 31 Mar 2020 18:27:06 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36

Update of bug #57914 (project make):

                  Status:                    None => Not A Bug              
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #6:

Just as another proof that it's a feature of the shell: if you don't use the
shell's built-in pwd command but instead use /bin/pwd, you'll see that just
like make (also not a built-in command in the shell :-)) it shows the physical
path:


$ mkdir /tmp/x1

$ ln -s /tmp/x1 foo

$ (cd foo && pwd)
/home/me/foo

$ (cd foo && /bin/pwd)
/tmp/x1


I don't know about cmake, but I can only assume that it's using the PWD
environment variable it inherited from the shell to determine the current
working directory, rather than asking the operating system like /bin/pwd (and
make) do.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57914>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]