Re: [PATCH] ls: adding --zero/-z option, including tests (original) (raw)


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


From: Bernhard Voelker
Subject: Re: [PATCH] ls: adding --zero/-z option, including tests
Date: Mon, 03 Feb 2014 20:27:23 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 02/03/2014 04:27 PM, Pádraig Brady wrote:

However ls is really a tool for direct consumption by a human, and in that case further processing is less useful. For futher processing, find(1) is more suited.

Furthermore, it might be a bit tricky to mutually exclude other formatting options like -l (ell), -1 (one) ... and some of these might even be defined in the LS_OPTIONS environment variable.

The problem is that find(1) doesn't have options for sorting by size or mtime like ls already has, unfortunately ... but OTOH, ls' output is not suitable for -z when it comes to recursion (-R).

Thus, I'm also 60:40 against adding it, as the most powerful use would probably be recursion.

Have a nice day, Berny