Order of files with 'cp'

Giorgos Keramidas keramida at ceid.upatras.gr
Mon Nov 21 04:34:30 PST 2005


On 2005-11-21 12:10, Brian Candler <B.Candler at pobox.com> wrote:
>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

Of course.  I just misunderstood you back then :)



More information about the freebsd-current mailing list