Order of files with 'cp'

Brian Candler B.Candler at pobox.com
Mon Nov 21 04:10:57 PST 2005


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.


More information about the freebsd-current mailing list