From owner-freebsd-stable@FreeBSD.ORG Mon Feb 28 23:48:00 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04ECC1065672 for ; Mon, 28 Feb 2011 23:48:00 +0000 (UTC) (envelope-from stephen@missouri.edu) Received: from mxnip01-missouri-out.um.umsystem.edu (mxnip01-missouri-out.um.umsystem.edu [209.106.229.53]) by mx1.freebsd.org (Postfix) with ESMTP id BB1BC8FC17 for ; Mon, 28 Feb 2011 23:47:59 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEADrDa03RauQ0/2dsb2JhbACmR3SyXohqhWEEhRKKSwY Received: from um-nsmtpin1.um.umsystem.edu ([209.106.228.52]) by mxnip01-mizzou-out.um.umsystem.edu with ESMTP; 28 Feb 2011 17:47:58 -0600 Received: from um-nsmtpout1.um.umsystem.edu ([209.106.228.53]) by um-nsmtpin1.um.umsystem.edu with Microsoft SMTPSVC(6.0.3790.4675); Mon, 28 Feb 2011 17:47:58 -0600 Received: from [192.168.1.69] ([173.202.227.194]) by um-nsmtpout1.um.umsystem.edu with Microsoft SMTPSVC(6.0.3790.4675); Mon, 28 Feb 2011 17:47:58 -0600 Message-ID: <4D6C342C.4030709@missouri.edu> Date: Mon, 28 Feb 2011 17:47:56 -0600 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20101206 SeaMonkey/2.0.11 MIME-Version: 1.0 To: Jeremy Chadwick References: <4D6BD83B.3040609@missouri.edu> <20110228233207.GA33800@icarus.home.lan> In-Reply-To: <20110228233207.GA33800@icarus.home.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 28 Feb 2011 23:47:58.0095 (UTC) FILETIME=[ED4A09F0:01CBD7A1] Cc: FreeBSD Stable Subject: Re: Change in behavior to stat(1) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Feb 2011 23:48:00 -0000 Jeremy Chadwick wrote: > Possibly you could use the example from the find(1) man page: > > find -L /usr/ports/packages -type l -exec rm -- {} + > Delete all broken symbolic links in /usr/ports/packages. > > (Note that the "+" on the end is not a typo, see the man page) Brilliant! Since this is *precisely* the purpose of my script, I think I will use this code instead,