Skip to content

ls: fix padding of size column when using -l#5604

Merged
sylvestre merged 1 commit intouutils:mainfrom
cakebaker:ls_fix_padding
Dec 2, 2023
Merged

ls: fix padding of size column when using -l#5604
sylvestre merged 1 commit intouutils:mainfrom
cakebaker:ls_fix_padding

Conversation

@cakebaker
Copy link
Copy Markdown
Contributor

This PR fixes an issue with the padding of the size column when using -l and the folder contains more than one file. The output of ls -l before the change:

total 0
-rw-r--r-- 1 dho dho    0 Nov 30 15:29 c.txt
-rw-r--r-- 1 dho dho    0 Nov 30 15:51 d.txt

And after the change:

total 0
-rw-r--r-- 1 dho dho 0 Nov 30 15:29 c.txt
-rw-r--r-- 1 dho dho 0 Nov 30 15:51 d.txt

This is the same output as GNU ls produces.

@sylvestre
Copy link
Copy Markdown
Contributor

excellent, it has been bothering me for a while :)

@sylvestre sylvestre merged commit e24d6b2 into uutils:main Dec 2, 2023
@cakebaker cakebaker deleted the ls_fix_padding branch December 2, 2023 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants