From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 31 18:53:11 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 710A916A4DE for ; Mon, 31 Jul 2006 18:53:11 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D82543D4C for ; Mon, 31 Jul 2006 18:52:58 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id k6VIqvW1021091; Mon, 31 Jul 2006 13:52:57 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <44CE5199.3050903@centtech.com> Date: Mon, 31 Jul 2006 13:53:13 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.4 (X11/20060612) MIME-Version: 1.0 To: rick-freebsd@kiwi-computer.com 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> <96b30c400607310847s1d2f845eo212b234d03f51e9a@mail.gmail.com> <20060731172858.GA84042@megan.kiwi-computer.com> <44CE40EA.5080009@centtech.com> <20060731184454.GA84483@megan.kiwi-computer.com> In-Reply-To: <20060731184454.GA84483@megan.kiwi-computer.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1627/Sun Jul 30 18:34:54 2006 on mh2.centtech.com X-Virus-Status: Clean Cc: freebsd-hackers@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: Mon, 31 Jul 2006 18:53:11 -0000 On 07/31/06 13:44, Rick C. Petty wrote: > On Mon, Jul 31, 2006 at 12:42:02PM -0500, Eric Anderson wrote: >> On 07/31/06 12:28, Rick C. Petty wrote: >>> In both cases, why don't you just use: >>> >>> /usr/compat/linux/bin/cp >> Two reasons - it's not in the base system, so a port has to be installed >> - and linux_base is FC3 now, so if you want to talk about bloat... > > And the "-l" option is needed in single-user mode? I like not having extra > bloat around when I don't even have /usr mounted and am trying to fix a > disk or misconfiguration. I'm just arguing the usefulness of having it in > the base system vs. using linux_base. The argument that our cp should be > equivalent to gcp seems silly to me. I never once said our cp should be equivalent. I just provided a patch that added 2 simple arguments, not the other 10 (or whatever the number is). > "-l" may be a useful option, but at what point is the line drawn between > bloating our base cp and having a gcp port (or using linux_base)?? I don't know, and I'm not (obviously) the one to make those decisions. > "-a" certainly is useless. An alias is far more useful-- even for things > in /bin ! I certainly cp and mv mapped to "cp -i" and "mv -i".. one could > also argue that the our base versions of these use this option by default. > Personally, I prefer to do a post-install patch to add these aliases to > /etc/csh.cshrc (actually on my systems: /etc/csh.aliases) and /etc/profile, > etc. > >> Another reason is gcp fails to recursively copy a directory that has >> symlinks in it. > > That sounds like a bug or at least an oversight. I'm just a FreeBSD user, so what do I know? I'll just do as others have kindly suggested, and keep my patches to my local servers/systems. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------