bug-coreutils
[Top][All Lists]
Advanced

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

bug#36220: ls -l: maddening mixed left right justifications with numeric


From: Paul Eggert
Subject: bug#36220: ls -l: maddening mixed left right justifications with numeric ids
Date: Mon, 17 Jun 2019 16:01:38 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0

On 6/17/19 8:12 AM, Pádraig Brady wrote:
Patch attached to do as described above

I prefer the current ("maddening") behavior, as it gives the reader a useful signal that the user is numeric rather than textual. This is particularly important when a user name consists entirely of digits, which is allowed on some systems. In that case, left alignment of a string like "7777" means it's a textual user name, whereas right alignment means it's a numeric user ID. Admittedly the disambiguation is not perfect (as there is no cue when the user name has the maximum width) but it's helpful in common practice.

I thought this was all documented somewhere - at least, it was a conscious decision when I wrote that code long ago.






reply via email to

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