From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 31 21:17:42 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 28DC716A4E1; Mon, 31 Jul 2006 21:17:42 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA3E843D5C; Mon, 31 Jul 2006 21:17:39 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k6VLHVZH073824; Mon, 31 Jul 2006 17:17:32 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Mon, 31 Jul 2006 16:38:14 -0400 User-Agent: KMail/1.9.1 References: <200607271150.k6RBoM9p031745@lurza.secnetix.de> <44CE4AD0.60409@centtech.com> <17614.20892.315747.115331@bhuda.mired.org> In-Reply-To: <17614.20892.315747.115331@bhuda.mired.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607311638.15298.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 31 Jul 2006 17:17:33 -0400 (EDT) X-Virus-Scanned: ClamAV 0.87.1/1627/Sun Jul 30 19:34:54 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: Mike Meyer , 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 21:17:42 -0000 On Monday 31 July 2006 14:53, Mike Meyer wrote: > Which points up an obvious question: other than compatibility with > Linux, is there any reason this functionaly shouldn't be added to the > ln command instead? Umm, because ln doesn't copy hierarchies? Using that argument we'd remove support for hard-links from tar and cpio. I think cp -a is harmless (just as I use rsync -a all the time rather than rsync -rlptgoD) and cp -l is probably useful. Really, it is more intuitive to be able to copy a hierarchy using the 'copy' command (cp) directly rather than a convoluted pair of find | cpio. In this case I think you might be overly paranoid. :) -- John Baldwin