Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Jul 2006 12:17:15 -0700
From:      Julian Elischer <julian@elischer.org>
To:        Mike Meyer <mwm-keyword-freebsdhackers2.e313df@mired.org>
Cc:        freebsd-hackers@freebsd.org, Doug Barton <dougb@freebsd.org>
Subject:   Re: [PATCH] adding two new options to 'cp'
Message-ID:  <44CE573B.209@elischer.org>
In-Reply-To: <17614.20892.315747.115331@bhuda.mired.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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 :-)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44CE573B.209>