Subject: Re: /bin/pwd (getcwd) and symlinks
From: Earnie Boyd <[email-masked]>
To: Egor Duda <[email-masked]>
Cc: [email-masked]
Date: Wed, 18 Oct 2000 06:46:46 -0700 (PDT)

--- Egor Duda <[email-masked]> wrote:
> Hi!
> 
> Wednesday, 18 October, 2000 Earnie Boyd [email-masked] wrote:
> 
> EB> --- Andrej Borsenkow <[email-masked]> wrote:
> >> If a current directory is symlink, getcwd() on Unix returns directory, to
> >> which this symlink points, while on Cygwin it returns directory itself:
> >>
> >> while on Unix this returns /tmp/real.
> [...]
> EB> It's implementation depedant.  On my HP-UX system it returns the symbolic
> link
> EB> name.  I could find no documentation stating that it should return the
> actual
> EB> directory.
> 
> are  you sure you've run "/bin/pwd"? Some shells (including bash) have
> internal pwd, which prints "symlinked" name.
> 

Ok.  HP-UX /bin/pwd prints the actual directory.  But, what does /bin/pwd on
Linux do?  Where is any documentation for what it should do for symlink?  I
haven't found anything useful that describes what happens for symlink.

Cheers,

=====
Earnie Boyd
mailto:[email-masked]

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to [email-masked]