From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 4 00:14:44 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B412116A4E1; Fri, 4 Aug 2006 00:14:44 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3400543D45; Fri, 4 Aug 2006 00:14:36 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k740CuYv084256; Thu, 3 Aug 2006 18:12:58 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 02 Aug 2006 15:33:37 -0600 (MDT) Message-Id: <20060802.153337.-432837969.imp@bsdimp.com> To: jhb@freebsd.org From: "M. Warner Losh" In-Reply-To: <200607311638.15298.jhb@freebsd.org> References: <44CE4AD0.60409@centtech.com> <17614.20892.315747.115331@bhuda.mired.org> <200607311638.15298.jhb@freebsd.org> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 03 Aug 2006 18:13:04 -0600 (MDT) Cc: freebsd-hackers@freebsd.org, mwm-keyword-freebsdhackers2.e313df@mired.org, dougb@freebsd.org Subject: Re: [PATCH] adding two new options to 'cp' 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: Fri, 04 Aug 2006 00:14:44 -0000 In message: <200607311638.15298.jhb@freebsd.org> John Baldwin writes: : On Monday 31 July 2006 14:53, Mike Meyer wrote: : > Which points up an obvious question: other than compatibility with : > Linux, is there any reason this functionaly shouldn't be added to the : > ln command instead? : : Umm, because ln doesn't copy hierarchies? Using that argument we'd remove : support for hard-links from tar and cpio. I think cp -a is harmless (just as : I use rsync -a all the time rather than rsync -rlptgoD) and cp -l is probably : useful. Really, it is more intuitive to be able to copy a hierarchy using : the 'copy' command (cp) directly rather than a convoluted pair of find | : cpio. In this case I think you might be overly paranoid. :) I tend to agree here. The bloat is minimal, and if there's ever a need to create minimal versions of cp, et al, at that time we can provide ways to optimize for space. We've done it in the past, and as we're pushing down into the embedded space, we may need to do it again. But we may not... Warner