bug-coreutils
[Top][All Lists]
Advanced

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

bug#26991: New quoting takes up unnecessary space


From: Pádraig Brady
Subject: bug#26991: New quoting takes up unnecessary space
Date: Fri, 19 May 2017 09:59:34 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 19/05/17 07:48, L A Walsh wrote:
> 
> 
> The new format uses extra spacing on columns where it isn't needed --
> but the extra space isn't enough to handle the 1 file that was quoted
> (needs 5 extra columns).  Where does it get '3' (and why doesn't it use
> 2?)?

Yes one can construct edge cases where this isn't ideal.
The normal case though is the quoted files are interspersed
in various columns. It's more important to have consistent
spacing I think on modern terminals. Anyway with layouts
like this you get more wasted space when a few files have
relatively longer names, irrespective of quoting, which is
a much more common issue.

The spacing is increased to 3 to allow for an extra space
for left alignment of non quoted items with quoted ones.

The alignment is more important for long listing I think,
but thought it a net benefit for other formats also.

Pádraig.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]