Re: Order of files with 'cp'

From: Matt Emmerton <matt_at_gsicomp.on.ca>
Date: Sat, 19 Nov 2005 00:05:46 -0500
> 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.

Why not revert to the "legacy" behaviour, and use the -o option for the
"optimized" algorithm?

--
Matt Emmerton
Received on Sat Nov 19 2005 - 04:05:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:48 UTC