Subject: du doesn't show size for all files/folders specified on the command line

From: Sorin Suciu <[email-masked]>
Date: Fri, 28 Apr 2023 12:42:47 +0300

Hi,

When specifying multiple entries on the command line if one of the file
folders is a subfolder of a previous parameter it will not show any
information about it. This is relevant when using max-depth.
Ex:
du -sh folder folder/subfolder
Will only show one entry which is the size of folder. If order is reversed
du -sh folder/subfolder folder will work as expected.
Another example:
du -sh .*
This will only show sizes for . and .. everything else being in the current
folder being a subfolder will not work.

Have a nice day,
Sorin.