Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Nov 2008 21:17:26 +0700
From:      Eugene Grosbein <eugen@kuzbass.ru>
To:        Andriy Gapon <avg@icyb.net.ua>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: find -L . -type l -delete
Message-ID:  <20081113141726.GA26583@svzserv.kemerovo.su>
In-Reply-To: <491C2DEB.3010504@icyb.net.ua>
References:  <491C2DEB.3010504@icyb.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 13, 2008 at 03:38:51PM +0200, Andriy Gapon wrote:

> Am I stupid or is our 'find' is seriously broken in one subtle feature?
> 
> $ find -L . -type l
> find all broken symlinks (target doesn't exists)
> 
> $ find -L . -type l -delete
> removes all symlinks!!!

Yes.

> FreeBSD 7.1-PRERELEASE amd64

This is pretty old and known problem:
http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/90687

Eugene Grosbein



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