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: 'Earnie Boyd' <earnie_boyd at yahoo dot com>, "Cygwin Mailing List (E-mail)" <cygwin at sources dot redhat dot com>
- Subject: RE: Symlink'ed current directory and FIND
- From: Paul Stodghill <stodghil at cs dot cornell dot edu>
- Date: Wed, 15 Nov 2000 09:51:50 -0500
> Find doesn't dereference symbolic links unless you tell it
> to. The command
> find -follow -type f
> would display the files you want displayed.
The way that Cygwin handles CWD=='.' when '.' is a symlink seems to be
different from Solaris, Linux and IRIS. I tried both NFS and local
disks.
ringding% uname -a
SunOS ringding 5.6 Generic_105181-16 sun4u sparc SUNW,Ultra-4
ringding% find --version
GNU find version 4.1
ringding% ls -ld a b
drwxr-sr-x 2 stodghil stodghil 512 Nov 15 09:19 a
lrwxrwxrwx 1 stodghil stodghil 1 Nov 15 09:19 b -> a
ringding% cd a
ringding% find -type f
./f1
./f2
./f3
ringding% cd ../b
ringding% find -type f
./f1
./f2
./f3
ringding%
itchy% uname -a
Linux itchy.cs.cornell.edu 2.2.12-20smp #1 SMP Mon Sep 27 10:34:45 EDT
1999 i686 unknown
itchy% find --version
GNU find version 4.1
itchy% ls -ld a b
drwxr-sr-x 2 stodghil stodghil 512 Nov 15 09:19 a
lrwxrwxrwx 1 stodghil stodghil 1 Nov 15 09:19 b -> a
itchy% cd a
itchy% find -type f
./f1
./f2
./f3
itchy% cd ../b
itchy% find -type f
./f1
./f2
./f3
itchy%
unfolding% uname -a
IRIX64 unfolding 6.5 04151556 IP30
unfolding% find --version
GNU find version 4.1
unfolding% ls -ld a b
drwxr-xr-x 2 stodghil 8274 2048 Nov 15 09:39 a
lrwxr-xr-x 1 stodghil 6007 1 Nov 15 09:39 b -> a
unfolding% cd a
unfolding% find -type f
./f1
./f2
./f3
unfolding% cd ../b
unfolding% find -type f
./f1
./f2
./f3
unfolding%
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com