This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
/bin/pwd (getcwd) and symlinks
- To: "Cygwin mailing list" <Cygwin at Sourceware dot Cygnus dot Com>
- Subject: /bin/pwd (getcwd) and symlinks
- From: "Andrej Borsenkow" <Andrej dot Borsenkow at mow dot siemens dot ru>
- Date: Wed, 18 Oct 2000 15:50:47 +0400
If a current directory is symlink, getcwd() on Unix returns directory, to
which this symlink points, while on Cygwin it returns directory itself:
mw1g017@MW1G17C% ls -l . sub
.:
total 0
drwxr-xr-x 2 mw1g017 ITS 0 Oct 18 15:40 real
drwxr-xr-x 2 mw1g017 ITS 0 Oct 18 15:40 sub
sub:
total 1
lrw-r--r-- 1 mw1g017 ITS 18 Oct 18 15:40 fake -> ../real
mw1g017@MW1G17C% cd sub/fake
mw1g017@MW1G17C% /bin/pwd
/tmp/sub/fake
while on Unix this returns /tmp/real.
Is it intentional?
-andrej
Have a nice DOS!
B >>
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com