From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 24 23:13:46 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B69A216A405 for ; Sun, 24 Feb 2008 23:13:46 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by mx1.freebsd.org (Postfix) with ESMTP id 6E32D13C46B for ; Sun, 24 Feb 2008 23:13:46 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: by py-out-1112.google.com with SMTP id u52so2196855pyb.10 for ; Sun, 24 Feb 2008 15:13:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; bh=+hllXM/UNPLQiVk3FZY80rMmnNHPYBtTIdI5oMvL1Xo=; b=hxqzLXOLh7Wbt9LKf5tgF+a60PFUngbbIhzesErOQ4U+HqiCthqJiEK7W1dK6qJiM3KW778xXLZuLXEOg7tB+QZ3pCE1pOtQtDIPalSvNZXyWBOi6XA2stMA/Mzm/iHtTi9jnBmOtL35BJBa0KvpYI1Vbnho7+eiz4+qdkUNyg0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; b=bBj7Ila8OmcAqcMeMfyB8jzuklMVF+blYmKdUNFKm+31///AVHfMPG+sbWumJ3ln3pm+eDzgrjuix+M+EZJsTA5WQh2UiKzgC8fOP57bkeZy+L++0AO68giH/0R366qGDrEw0vNtVh1M07+bfHmj8wX1B2LvLYqD4yKYgrKpb5w= Received: by 10.35.90.1 with SMTP id s1mr2622958pyl.53.1203893299442; Sun, 24 Feb 2008 14:48:19 -0800 (PST) Received: from ?192.168.1.4? ( [98.212.164.35]) by mx.google.com with ESMTPS id n27sm4902994pyh.11.2008.02.24.14.48.17 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 24 Feb 2008 14:48:18 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v624) In-Reply-To: <20080224.124339.-1302545914.imp@bsdimp.com> References: <20080222.225937.-146245356.imp@bsdimp.com> <20080223.000308.686168314.imp@bsdimp.com> <20080224171155.GD51827@dracon.ht-systems.ru> <20080224.124339.-1302545914.imp@bsdimp.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <86c537e091aaaebaf6ba00e5259c5eb1@gmail.com> Content-Transfer-Encoding: 7bit From: Joshua Isom Date: Sun, 24 Feb 2008 16:50:05 -0600 To: hackers@freebsd.org X-Mailer: Apple Mail (2.624) Cc: Subject: Re: find -lname and -ilname implemented X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2008 23:13:46 -0000 Instead of all the debate about GNU compatibility and the fact that the patch adds a feature not readily available, why not improve FreeBSD's find without caring about GNU's find? I have not seen a way to capture output from a command and compare it to another command. Imagine something conceptually like `find . -type l -execout readlink '{}' \; -eq "foobar.txt" -print`? Then it's possible to achieve the same possibility as -lname, and far far more. You could search for all files with "foobar" in the last ten lines of the file even. The closest "viable" option to this that I know of is find2perl, and then custom editing. Not to mention, I imagine you'd soon see GNU find struggling for FreeBSD find compatibility.