delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/18/09:49:16

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <20001018134646.16601.qmail@web113.yahoomail.com>
Date: Wed, 18 Oct 2000 06:46:46 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Subject: Re: /bin/pwd (getcwd) and symlinks
To: Egor Duda <cygwin AT sources DOT redhat DOT com>
Cc: cygwin AT sources DOT redhat DOT com
MIME-Version: 1.0

--- Egor Duda <deo AT logos-m DOT ru> wrote:
> Hi!
> 
> Wednesday, 18 October, 2000 Earnie Boyd earnie_boyd AT yahoo DOT com wrote:
> 
> EB> --- Andrej Borsenkow <Andrej DOT Borsenkow AT mow DOT siemens DOT ru> 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:earnie_boyd AT yahoo DOT com

---         <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 cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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