From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 31 16:26:41 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 E429416A56D for ; Mon, 31 Jul 2006 16:26:41 +0000 (UTC) (envelope-from juan.fco.rodriguez@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BD4743D46 for ; Mon, 31 Jul 2006 16:26:40 +0000 (GMT) (envelope-from juan.fco.rodriguez@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so891818uge for ; Mon, 31 Jul 2006 09:26:39 -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=PzpP9YwjHWHNLh8rdAxsfP95mGD3jLSKR4sWlUsSLGFUAucSe4PS9/aDQIpQOCs5Uu9LOlzg/Ci6T91SuHxswbllxfbTHNtoNbF/EEmUr2tKdMk/n2MHRzy8KPbif3Ve/8VcDa0h9aTWyjmoMNS1ZkRd0OQmNjZStVB109rI8lM= Received: by 10.78.165.13 with SMTP id n13mr245356hue; Mon, 31 Jul 2006 09:26:39 -0700 (PDT) Received: by 10.70.37.19 with HTTP; Mon, 31 Jul 2006 09:26:39 -0700 (PDT) Message-ID: <96b30c400607310926g76213454l73a51f2d50251cf9@mail.gmail.com> Date: Mon, 31 Jul 2006 18:26:39 +0200 From: "Juan Rodriguez" To: freebsd-hackers@freebsd.org In-Reply-To: <17614.10982.499561.139268@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> <96b30c400607310847s1d2f845eo212b234d03f51e9a@mail.gmail.com> <17614.10982.499561.139268@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 16:26:42 -0000 On 7/31/06, Mike Meyer wrote: > > In <96b30c400607310847s1d2f845eo212b234d03f51e9a@mail.gmail.com>, Juan > Rodriguez typed: > > On 7/31/06, Mike Meyer > wrote: > > My GNU version of "cp" has more than 18 options, the FreeBSD > > version only has 9. > > And this results in: > > student% uname -a > Linux student.mired.org 2.6.12-9-386 #1 Mon Oct 10 13:14:36 BST 2005 i686 > GNU/Linux > student% ls -l /bin/cp > -rwxr-xr-x 1 root root 51008 2005-09-05 05:14 /bin/cp > > > snake% uname -a > FreeBSD snake.mired.org 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 > 04:42:56 UTC 2006 root@opus.cse.buffalo.edu > :/usr/obj/usr/src/sys/SMP i386 > snake% ls -l /bin/cp > -r-xr-xr-x 1 root wheel 15300 May 6 23:56 /bin/cp > > > -- > Mike Meyer > http://www.mired.org/consulting.html > Independent Network/Unix/Perforce consultant, email for more information. > I've just realized that the manual page of FreeBSD's "cp" warns about hard links: -R ...blablabla... Note that cp copies hard linked files as separate files. If you need to preserve hard links, consider using tar(1), cpio(1), or pax(1) instead. -- JFRH