This is the mail archive of the cygwin@sources.redhat.com 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]

Re: Symlink'ed current directory and FIND


Hi!

Wednesday, 15 November, 2000 Paul Stodghill stodghil@cs.cornell.edu wrote:

it's  a  feature  :)  i  don't  know  if  any standard says that linux
behavior   is  correct  while  cygwin  isn't. it is possible (and imho
desirable  too)  to  make  cygwin work like linux in this case, but it
requires  some  changes  in cygwin's path handling, and should be done
with appropriate care.

PS> Why doesn't FIND find files in the current directory when the current
PS> directory is accessed via a symlink?

PS> milhouse$ hash -r
PS> milhouse$ vdir -d a b
PS> drwxr-xr-x   2 stodghil None            0 Nov 15 09:03 a
PS> lrwxrwxrwx   1 stodghil None           12 Nov 15 09:02 b -> a
PS> milhouse$ cd a
PS> milhouse$ find -type f
PS> ./f1
PS> ./f2
PS> ./f3
PS> milhouse$ cd ../b
PS> milhouse$ find -type f
PS> milhouse$ ls
PS> f1  f2  f3
PS> milhouse$ type -p find
PS> /usr/bin/find

it's  a  feature  :)  i  don't  know  if  any standard says that linux
behavior   is  correct  while  cygwin  isn't. it is possible (and imho
desirable  too)  to  make  cygwin work like linux in this case, but it
requires  some  changes  in cygwin's path handling, and should be done
with appropriate care.

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


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