tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: mtree output sorting



On Mon, Apr 06, 2009 at 03:51:41PM +0200, Alan Barrett wrote:
> I resently changed "mtree -C" to sort its output into the same order
> used by "mtree -c".  The sort order is that used by strcmp(), except
> that directories sort after non-directories.

I don't like that last part. It means the result can change in the face
of symlinks to directories.

> 1) find(1) also has a sort option, "find -s", but that uses strcoll(3),
>    not strcmp(3).  Should mtree use strcoll(3) for sorting?

Do we want it to be locale-sensitive? We don't have collation support
ATM, but it is a missing feature.

Joerg


Home | Main Index | Thread Index | Old Index