Re: Order of files with 'cp'

From: Eric Anderson <anderson_at_centtech.com>
Date: Fri, 18 Nov 2005 09:45:27 -0600
Brian Candler wrote:
>>This just adds a -o flag to cp, which preserves order.
> 
> 
> Hmm, that's another solution that I hadn't thought of.
> 
> Advantages: simple to implement. (Even simpler if you use the ?: operator).
> 
> Disadvantages: it's still strange that the default behaviour is to copy the
> files in an arbitary shuffled order. The manpage will need updating to
> document the -o flag, and hence will have to explain the strangeness.
> Commands arguably have too many flags already.

I didn't think cp (or any tool, like tar) did it 'arbitrarily', but in 
order of mtime.  Is that not true?

Eric


-- 
------------------------------------------------------------------------
Eric Anderson        Sr. Systems Administrator        Centaur Technology
Anything that works is better than anything that doesn't.
------------------------------------------------------------------------
Received on Fri Nov 18 2005 - 14:45:41 UTC

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