Date: Sun, 20 Nov 2005 12:27:06 -0800 From: Tim Kientzle <kientzle@freebsd.org> To: Brian Candler <B.Candler@pobox.com> Cc: freebsd-current@freebsd.org Subject: Re: Order of files with 'cp' Message-ID: <4380DC1A.9030201@freebsd.org> In-Reply-To: <20051120192914.GC19572@uk.tiscali.com> References: <20051116161540.GB4383@uk.tiscali.com> <437F7E22.5050800@freebsd.org> <20051120192914.GC19572@uk.tiscali.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Brian Candler wrote: > On Sat, Nov 19, 2005 at 11:33:54AM -0800, Tim Kientzle wrote: >>Brian Candler wrote: >> >>>I've noticed on FreeBSD-5.4 and -6.0 that the order in which 'cp' copies >>>multiple files does not match the order they're given on the command line. >> >>My suggestion: Have 'cp' call fts_open once for each >>command-line argument, .... > > Erm, but that just undoes the reason for calling fts_open with mastercmp in > the first place, which is to get it to pick files before directories (or > vice versa, as its behaviour seems to be) as an 'optimisation'. Why is that an optimization? I thought the whole point of this thread was that users expect utilities to process the command-line arguments in the order they're given. Tim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4380DC1A.9030201>