This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: /bin/pwd (getcwd) and symlinks
- To: Earnie Boyd <earnie_boyd at yahoo dot com>
- Subject: Re: /bin/pwd (getcwd) and symlinks
- From: Egor Duda <deo at logos-m dot ru>
- Date: Wed, 18 Oct 2000 17:18:53 +0400
- CC: cygwin at sources dot redhat dot com
- Organization: DEO
- References: <20001018124405.9125.qmail@web112.yahoomail.com>
- Reply-To: Egor Duda <cygwin at sources dot redhat dot com>
Hi!
Wednesday, 18 October, 2000 Earnie Boyd earnie_boyd@yahoo.com wrote:
EB> --- Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.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.
Egor. mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com