delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/15/09:52:12

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <706871B20764CD449DB0E8E3D81C4D43CE8D18@opus.cs.cornell.edu>
From: Paul Stodghill <stodghil AT cs DOT cornell DOT edu>
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
Date: Wed, 15 Nov 2000 09:51:50 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

> 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019