Re: [dev] [sbase] [PATCH] ls: add option to reverse the sort order

From: Markus Teich <>
Date: Fri, 4 Oct 2013 15:50:55 +0200

Alexander S. wrote:
> Uh, cannot this be achieved by piping output to tac?

Roberto E. Vargas Caballero wrote:
> Yes, but tac it is no a standard posix tool, and sbase also hasn't it.
> I have an awk script in my machine for it:

Both solutions mean iterating over the list once more to reverse the order.

Raphaël Proust wrote:
> At which points someone asks why is there a sorted order at all in ls output…
> cannot this be achieved by piping output to sort?

Because it is convenient to get the output of an often used tool directly how
you want it, instead of opening up multiple processes and pipes to format it?

Received on Fri Oct 04 2013 - 15:50:55 CEST

This archive was generated by hypermail 2.3.0 : Fri Oct 04 2013 - 16:00:09 CEST