Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 2, 2023

Conversation

cakebaker
Copy link
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
Sponsor Contributor

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

@sylvestre sylvestre merged commit e24d6b2 into uutils:main Dec 2, 2023
51 of 53 checks passed
@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