From owner-freebsd-current@FreeBSD.ORG Sat Nov 19 22:28:44 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E5D416A41F for ; Sat, 19 Nov 2005 22:28:44 +0000 (GMT) (envelope-from freebsd-current-local@be-well.ilk.org) Received: from mail22.sea5.speakeasy.net (mail22.sea5.speakeasy.net [69.17.117.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4C8843D45 for ; Sat, 19 Nov 2005 22:28:43 +0000 (GMT) (envelope-from freebsd-current-local@be-well.ilk.org) Received: (qmail 32064 invoked from network); 19 Nov 2005 22:28:43 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail22.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 19 Nov 2005 22:28:42 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 8708B2841B; Sat, 19 Nov 2005 17:28:41 -0500 (EST) Sender: lowell@be-well.ilk.org To: "Matt Emmerton" References: <20051116161540.GB4383@uk.tiscali.com> <20051118091333.GA1058@galgenberg.net> <20051118145051.GA3713@Pandora.MHoerich.de> <20051119034522.GS39882@cirb503493.alcatel.com.au> <002a01c5ecc6$e8a0cfe0$1200a8c0@gsicomp.on.ca> From: Lowell Gilbert Date: 19 Nov 2005 17:28:40 -0500 In-Reply-To: <002a01c5ecc6$e8a0cfe0$1200a8c0@gsicomp.on.ca> Message-ID: <44fypsqnl3.fsf@be-well.ilk.org> Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Peter Jeremy , freebsd-current@freebsd.org, Brian Candler Subject: Re: Order of files with 'cp' X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Nov 2005 22:28:44 -0000 "Matt Emmerton" writes: > > On Fri, 2005-Nov-18 15:50:53 +0100, Mario Hoerich wrote: > > >This just adds a -o flag to cp, which preserves order. > > > > I think that's overkill. IMHO, cp should just copy files in the order > > specified on the command line (or directory order for recursive copies). > > For most purposes, the order is irrelevant. In cases where it is > > relevant, the caller has a better idea of what order they want and can > > juggle the command line to suit. > > Hear hear! The underlying change, while technically sound, breaks POLA -- > which should have been the first thing to consider when this change was > suggested, and should have been rejected immediately on that ground alone. I don't follow this point. The existing behaviour was unpredictable, so it's unlikely anybody was depending on it. Therefore, the POLA doesn't apply. Can you explain what you mean? > Why not revert to the "legacy" behaviour, and use the -o option for the > "optimized" algorithm? That would, nonetheless, be fine with me.