From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 23 23:48:50 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4356A16A405 for ; Sat, 23 Feb 2008 23:48:50 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 1D1D713C448 for ; Sat, 23 Feb 2008 23:48:50 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m1NNlggw051993; Sat, 23 Feb 2008 16:47:42 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 23 Feb 2008 16:48:06 -0700 (MST) Message-Id: <20080223.164806.-674897155.imp@bsdimp.com> To: jonathan+freebsd-hackers@hst.org.za From: "M. Warner Losh" In-Reply-To: <200802232322.45288.jonathan+freebsd-hackers@hst.org.za> References: <200802232322.45288.jonathan+freebsd-hackers@hst.org.za> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org 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: Sat, 23 Feb 2008 23:48:50 -0000 In message: <200802232322.45288.jonathan+freebsd-hackers@hst.org.za> Jonathan McKeown writes: : What functionality does : : find path -lname name : : add that isn't already available from : : find path -name name -type l : : and what other combinations should be special-cased like this? What it does is make busybox and openwrt scrpits work better. One could argue that one should change the scripts, but that's not likely to happen. What does -iname add that a properly constructed regular expression for the name not have? Convenience. So apart from the fact that it is used in real scripts, it is also more convenient. Why do we use tools with short cuts? Because it saves us time. : Yes, where it makes sense. I'm not at all convinced that this change makes as : much sense as you obviously think it does - especially given that it doesn't : add previously unavailable functionality, and that we have a ports system : which includes a patch stage for dealing with this sort of gratuitous : non-portability in ported applications. The change absolutely makes sense, and so far none of the arguments against it are really worth the time to respond to. I'm using packages not in the ports system. Frankly, the more gratuitous differences with the gnu tools we have, the harder the sell will be for companies wanting to replace their Linux systems with FreeBSD ones. The changes I made were absolutely trivial in the scheme of things. This knee-jerk reaction against gnu find functionality baffles me. The changes are trivial and make FreeBSD more compatible. It is such an obvious no-brainer that I frankly didn't expect anybody to bat an eye. Warner