From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 31 15:47:25 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 539B516A4DE for ; Mon, 31 Jul 2006 15:47:25 +0000 (UTC) (envelope-from juan.fco.rodriguez@gmail.com) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5035543D76 for ; Mon, 31 Jul 2006 15:47:11 +0000 (GMT) (envelope-from juan.fco.rodriguez@gmail.com) Received: by wx-out-0102.google.com with SMTP id t12so214263wxc for ; Mon, 31 Jul 2006 08:47:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=opEHemMuK6Scv5PYcWrjK3PSqjprwXAKMjuufbAah9mjw+oqdSO2SV7rE+7XnSTtZHnLJsHsciWq2EFqkFhxTLLlyRprFPfrehanFht33khzCOgy3Kelg3//04IrnmXf1Aj1lkcjKKlN9ID+aRnktor79t44Wtd50m89rtEwsB4= Received: by 10.70.102.5 with SMTP id z5mr2881706wxb; Mon, 31 Jul 2006 08:47:09 -0700 (PDT) Received: by 10.70.37.19 with HTTP; Mon, 31 Jul 2006 08:47:09 -0700 (PDT) Message-ID: <96b30c400607310847s1d2f845eo212b234d03f51e9a@mail.gmail.com> Date: Mon, 31 Jul 2006 17:47:09 +0200 From: "Juan Rodriguez" To: freebsd-hackers@freebsd.org In-Reply-To: <17614.8289.134373.387558@bhuda.mired.org> MIME-Version: 1.0 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> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 15:47:25 -0000 On 7/31/06, Mike Meyer wrote: > > In <44CE199C.2020500@centtech.com>, Eric Anderson > typed: > > On 07/31/06 09:11, Mike Meyer wrote: > > > In <44CE03D2.2050803@centtech.com>, Eric Anderson < > anderson@centtech.com> typed: > > >> The patch doesn't change any current behavior, nor should it be > noticed > > >> by anyone not looking for it. However, it is useful, and it does > make > > >> our cp work just like the GNU cp, which eases the migration path for > > >> linux->FreeBSD users. > > > Is emulating Linux behavior that good an idea? I mean, if I want > > > Linux, I can download and install a copy. The joke about "Linux is for > > > people who hate Windows; FreeBSD is for people who love Unix" is funny > > > to me *because* it seems to capture the difference between the two > > > systems so accurately. I like Unix/BSD because I feel like the > > > developers respect the user, and are willing to let the user do pretty > > > much anything they need to do, even if there's no obvious reason for > > > them to want that. I detest Windows because the developers treat the > > > the user like an idiot, and write software that does things the way > > > they think the user should want to do them - and make it impossible to > > > do things that the developers don't think users would ever need/want > > > to do. Linux seems to have more of the latter attitude than the > > > former. [And no, I don't think this patch has that attitude; I just > > > don't think that "that's how linux does it" is a valid argument: > > > freebsd isn't linux.] > > The reasoning was not simply to make it like linux, that's just a side > > effect. > > That doesn't make the "to makes it more like Linux" argument a good > reason to change FreeBSD. > > > >> I suppose I'm just missing the reason *not* to commit such a simple > and > n> >> useful set of options. > > > Feature bloat. Or, more verbosely, this doesn't add any new > > > functionality to the system, while adding things that we would rather > > > minimize. > > This is a really funny reason not to. Honestly, if you believe that, > > that you probably don't use cp at all, since dd can do it. > > Yes, I believe that. Adding features does *not* necessarily improve a > system. If you want it added, give us *good* reasons to add it. Lack > of a good reason not to add a feature is *not* a good reason to add > the feature. > > Personally, I'm neutral on this change, other than not wanting FreeBSD > to bloat any more than it already is. Given good reasons, I'd say > commit it. The reasons you just provided are specious. > > > > If the functionality is all that useful, then people should have > > > already created shell code to make this functionality easily available > > > via the tools that already have it. If nobody needs this functionality > > > often enough to have done that, is it something that we want to > > > enshrine in compiled code? > > To me, I read this as saying: "If it was useful, it would have already > > been done, and since it isn't, it must not be needed by anyone." > > How does "people would have created shell code to make this easy to > do" equate to "someone would have already added an option for it"? You > claim that the code provides "useful functionality". If it's useful, > then people should be using the alternatives frequently. Command lines > that people use frequently tend to get enshrined in shell scripts, or > aliases, or shell functions, or whatever. Moving such things into > commands is a standard path for Unix code, and has been since at least > v6. So, if you want to take that step, can you show that it's really > used frequently enough to warrant getting a dedicated option? > > -- > Mike Meyer > http://www.mired.org/consulting.html > Independent Network/Unix/Perforce consultant, email for more information. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > Hello, My GNU version of "cp" has more than 18 options, the FreeBSD version only has 9. As I usually work with Linux machines, I'm used to "cp -a" and I have always hated to have to look up in the FreeBSD's "cp" manual page for the right options to get the same funtionality. I tend to think that "-a" is option bloating because it's not really needed, but I see "-l" as a new feature for "cp" that might be useful. I'm not a unix/linux expert but when I have to copy something, "cp" shows up inmediately in my mind (I almost never use "cpio" and I didn't know "pax", for example). To sum it up, I think "cp -a" and "cp -l" are both useful, the first one because of compatibility with the large base of Linux systems out there, and the second one because I think it's a useful feature for the FreeBSD "cp". This is only my personal experience, though I understand that if you want to protect "cp" for having more than 10 options, these options shouldn't see the sunlight :P -- JFRH