emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#36220: closed (ls -l: maddening mixed left right j


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#36220: closed (ls -l: maddening mixed left right justifications with numeric ids)
Date: Tue, 18 Jun 2019 07:34:03 +0000

Your message dated Tue, 18 Jun 2019 00:33:44 -0700
with message-id <address@hidden>
and subject line Re: bug#36220: ls -l: maddening mixed left right 
justifications with numeric ids
has caused the debbugs.gnu.org bug report #36220,
regarding ls -l: maddening mixed left right justifications with numeric ids
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
36220: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=36220
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: ls -l: maddening mixed left right justifications with numeric ids Date: Sat, 15 Jun 2019 10:35:10 +0800
Some files might only have numeric user ids,

# ls -l
-rw-r--r-- 1  777 root   0 06-15 10:14 a
-rw-r--r-- 1 root 777777 0 06-15 10:11 b
-rw-r--r-- 1 root root   0 06-15 10:12 c
-rw-r--r-- 1 root    777 0 06-15 10:12 d

Well it turns out an undocumented feature is that numeric ids are
justified in the opposite direction of regular ids.

Makes sense, however it wreaks havoc in the above mixed situations.

The only way to get columns to line up in such mixed situations is

# ls -ln
-rw-r--r-- 1 777      0 0 06-15 10:14 a
-rw-r--r-- 1   0 777777 0 06-15 10:11 b
-rw-r--r-- 1   0      0 0 06-15 10:12 c
-rw-r--r-- 1   0    777 0 06-15 10:12 d

but that sacrifices the names.

Well at least on (info "(coreutils) What information is listed") at

‘-n’
‘--numeric-uid-gid’
     Produce long format directory listings, but display numeric user
     and group IDs instead of the owner and group names.

document that "Note that numeric ids are always right justified."

ls (GNU coreutils) 8.30



--- End Message ---
--- Begin Message --- Subject: Re: bug#36220: ls -l: maddening mixed left right justifications with numeric ids Date: Tue, 18 Jun 2019 00:33:44 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0
積丹尼 Dan Jacobson wrote:
Indeed all you need to do would me mention the logic there on INFO "ls"
and we would realize that this was actually a feature.

OK, I installed the attached and am marking this bug as done.

Attachment: 0001-doc-mention-ls-l-user-group-justification.patch
Description: Text Data


--- End Message ---

reply via email to

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