Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Wed, 18 Oct 2000 17:18:53 +0400 From: Egor Duda X-Mailer: The Bat! (v1.45) Personal Reply-To: Egor Duda Organization: DEO X-Priority: 3 (Normal) Message-ID: <13414742969.20001018171853@logos-m.ru> To: Earnie Boyd CC: cygwin AT sources DOT redhat DOT com Subject: Re: /bin/pwd (getcwd) and symlinks In-reply-To: <20001018124405.9125.qmail@web112.yahoomail.com> References: <20001018124405 DOT 9125 DOT qmail AT web112 DOT yahoomail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi! Wednesday, 18 October, 2000 Earnie Boyd earnie_boyd AT yahoo DOT com wrote: EB> --- Andrej Borsenkow 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. Egor. mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19 -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com