Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Dec 2005 23:50:06 GMT
From:      David Taylor <davidt@yadt.co.uk>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/90687: [patch] side effect of -delete option of find(1)
Message-ID:  <200512222350.jBMNo6km024367@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/90687; it has been noted by GNATS.

From: David Taylor <davidt@yadt.co.uk>
To: Anatoli Klassen <anatoli@aksoft.net>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: bin/90687: [patch] side effect of -delete option of find(1)
Date: Thu, 22 Dec 2005 23:49:02 +0000

 On Tue, 20 Dec 2005, Anatoli Klassen wrote:
 > 
 > >How-To-Repeat:
 > 	Create a file, symbolic link to it and a broken symbolic link:
 > 	touch a && ln -s a b && ln -s c d
 > 
 > 	Now detect all broken links:
 > 	find -L . -type l
 > 	- works fine, shows that "d" is broken.
 > 
 > 	Then try to delete the broken links
 > 	find -L . -type l -delete
 > 	- all links are deleted, not only broken ones.
 
 I'm also seeing this problem, and I just noticed that this is
 given as an example in the find(1) manpage:
 
 EXAMPLES
 ..
      find -L /usr/ports/packages -type l -delete
              Delete all broken symbolic links in /usr/ports/packages.
 ..
 
 -- 
 David Taylor



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512222350.jBMNo6km024367>