From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 31 19:18:48 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 7D62516A4E9; Mon, 31 Jul 2006 19:18:48 +0000 (UTC) (envelope-from prvs=julian=360b2d18d@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9E2043D64; Mon, 31 Jul 2006 19:17:46 +0000 (GMT) (envelope-from prvs=julian=360b2d18d@elischer.org) Received: from unknown (HELO [10.251.18.229]) ([10.251.18.229]) by a50.ironport.com with ESMTP; 31 Jul 2006 12:17:16 -0700 Message-ID: <44CE573B.209@elischer.org> Date: Mon, 31 Jul 2006 12:17:15 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.13) Gecko/20060414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mike Meyer References: <200607271150.k6RBoM9p031745@lurza.secnetix.de> <44C8FB65.9020102@FreeBSD.org> <44CE03D2.2050803@centtech.com> <17614.4005.407223.621637@bhuda.mired.org> <44CE199C.2020500@centtech.com> <17614.8289.134373.387558@bhuda.mired.org> <44CE4AD0.60409@centtech.com> <17614.20892.315747.115331@bhuda.mired.org> In-Reply-To: <17614.20892.315747.115331@bhuda.mired.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Doug Barton 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: Mon, 31 Jul 2006 19:18:48 -0000 Mike Meyer wrote: >I'm as neutral as I'd be about *any* other addition. I don't have a >specific reason to dislike it. But I don't have a specific reason to >like it, either. The last time I wanted a hardlinked copy of a >directory tree was long enough ago that most (if not all) of the >alternative solutions mentioned here didn't exist yet. > > > >>I suppose I thought >>the reasons were obvious - to get a hardlinked copy of a directory tree, >>one must concoct any one of a number of command lines, all using at >>least one of which is much bigger in size than the patched cp I >>proposed. Here are some of the commands mentioned so far that are used >>by people to do the exact same thing: >> >>-r-xr-xr-x 1 root wheel 50056 Jul 25 23:08 /usr/bin/bsdtar >>-r-xr-xr-x 1 root wheel 52600 Jul 25 23:07 /usr/bin/cpio >>-r-xr-xr-x 1 root wheel 36480 Jul 25 23:08 /usr/bin/find >>-r-xr-xr-x 1 root wheel 90376 Jul 25 23:06 /bin/pax >> >> > > > >>And here's my patched version of cp: >>-r-xr-xr-x 1 root wheel 15460 Jul 26 14:52 /bin/cp >> >>So yes, you bloat by 160 bytes, but you can then possibly remove your >>need for one or more utilities that eat up at least twice the space. >> >> > >So are you proposing that we remove one of those utilities? If not, >then you are bloating the system. Yeah, it's only by a little bit. But >a lot of little bits add up. > > Ok I"m going to pipe up here. The feature is cheap, it is useful and it allows people to adopt FreeBSD with less surprises. I will commit this soon unless someone else does it first. Now go do something useful :-)