From owner-freebsd-current@FreeBSD.ORG Mon Nov 21 12:10:57 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 1260616A456; Mon, 21 Nov 2005 12:10:57 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from thorn.pobox.com (thorn.pobox.com [208.210.124.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BAB843D49; Mon, 21 Nov 2005 12:10:56 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from thorn (localhost [127.0.0.1]) by thorn.pobox.com (Postfix) with ESMTP id C7F09AE; Mon, 21 Nov 2005 07:11:17 -0500 (EST) Received: from mappit.local.linnet.org (212-74-113-67.static.dsl.as9105.com [212.74.113.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by thorn.sasl.smtp.pobox.com (Postfix) with ESMTP id 554A445E; Mon, 21 Nov 2005 07:11:15 -0500 (EST) Received: from brian by mappit.local.linnet.org with local (Exim 4.54 (FreeBSD)) id 1EeAVY-0005oC-4z; Mon, 21 Nov 2005 12:10:52 +0000 Date: Mon, 21 Nov 2005 12:10:52 +0000 From: Brian Candler To: Giorgos Keramidas Message-ID: <20051121121052.GA22309@uk.tiscali.com> References: <20051116161540.GB4383@uk.tiscali.com> <437F7E22.5050800@freebsd.org> <20051120193416.GB1599@flame.pc> <20051120205605.GB19791@uk.tiscali.com> <20051121114614.GA1549@flame.pc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051121114614.GA1549@flame.pc> User-Agent: Mutt/1.4.2.1i 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:10:57 -0000 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 Regards, Brian.