From owner-freebsd-current@FreeBSD.ORG Mon Nov 21 12:34:30 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 42D4E16A41F; Mon, 21 Nov 2005 12:34:30 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DCE843D5C; Mon, 21 Nov 2005 12:34:23 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) by kane.otenet.gr (8.13.4/8.13.4/Debian-1) with SMTP id jALCYJX4016144; Mon, 21 Nov 2005 14:34:19 +0200 Received: by flame.pc (Postfix, from userid 1001) id 72AD011763; Mon, 21 Nov 2005 14:33:57 +0200 (EET) Date: Mon, 21 Nov 2005 14:33:57 +0200 From: Giorgos Keramidas To: Brian Candler Message-ID: <20051121123357.GA1918@flame.pc> References: <20051116161540.GB4383@uk.tiscali.com> <437F7E22.5050800@freebsd.org> <20051120193416.GB1599@flame.pc> <20051120205605.GB19791@uk.tiscali.com> <20051121114614.GA1549@flame.pc> <20051121121052.GA22309@uk.tiscali.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051121121052.GA22309@uk.tiscali.com> X-Mailman-Approved-At: Mon, 21 Nov 2005 12:39:22 +0000 Cc: Tim Kientzle , freebsd-current@freebsd.org 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: Mon, 21 Nov 2005 12:34:30 -0000 On 2005-11-21 12:10, Brian Candler wrote: >On Mon, Nov 21, 2005 at 01:46:14PM +0200, Giorgos Keramidas wrote: >> To return to the problem at hand, the problem is that the >> 'sorting' function is allowed to re-arrange the order of argv[] >> elements. I'd probably try to write mastercmp() in a way that >> satisfies all of the following: >> >> - All files are sorted before all directories >> - Files are arranged by their argv[] order >> - Directories are arranged by their argv[] order > > I think that was my option (1) at > http://lists.freebsd.org/pipermail/freebsd-current/2005-November/058098.html Of course. I just misunderstood you back then :)