symboilc link does not expand if followed by /..

Vinay Kumar kvinay@denver.india.mentorg.com
Tue Jul 13 14:34:00 GMT 2004


Hi all,
    I found a problem with symbolic link expansion in cygwin. Symbolic
link does not expand properly if it is followed by /.. . To see it at
your place please do the following.
cd /tmp
mkdir dir1
mkdir dir2
touch dir1/1.c
cd dir2
ln -s ../dir1 symlink

if we do ls symlink it gives 1.c as expected.
But if we do ls symlink/.. then it list contents of present directory.

@/tmp/dir2
$ ls symlink
1.c

@/tmp/dir2
$ ls symlink/..
symlink

I think it should list contents of /tmp directory.
Could somebody throw some light over it.

regards
Vinay


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list