This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

symboilc link does not expand if followed by /..


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]