This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: Symlink'ed current directory and FIND
- To: Paul Stodghill <stodghil at cs dot cornell dot edu>
- Subject: Re: Symlink'ed current directory and FIND
- From: Egor Duda <deo at logos-m dot ru>
- Date: Wed, 15 Nov 2000 18:19:33 +0300
- CC: cygwin at sources dot redhat dot com
- Organization: DEO
- References: <706871B20764CD449DB0E8E3D81C4D43CE8D17@opus.cs.cornell.edu>
- Reply-To: Egor Duda <cygwin at sources dot redhat dot com>
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