Red Hat Bugzilla – Bug 997937
Files Size between 1000 and 1023 shifts file name over.
Last modified: 2014-02-03 08:56:23 EST
This is just a minor irritation but didn't know how to send this upstream as a suggestion.
[whitestar ~]$ tree -CDh MyTree
|-- [1.0G Aug 14 0:34] file00.txt
|-- [987M Aug 14 0:41] file04.txt
|-- [1001M Aug 14 0:46] file05.txt
|-- [ 92M Aug 14 0:59] file07.txt
|-- [217M Aug 14 1:00] file08.txt
When the file size is reported in human readable form it normally takes up 4 characters. Except when the filesize is between 1000 and 1023. Which messes up the nice even formatting by shifting the file name and date over by one character. What I suggest is for the size column to 5 characters or round up when it's between 1000 and 1023.
I've increased the size column to 5 characters in tree-1.6.0-11.fc19.
Fixed in Fedora 20.