On 04/07/2015 02:42 PM, Gert Pellin wrote:
> On stack exchange someone reported a bug today, after manually updating
> du -sh * gives errors on all his computers. Is this a bug? On my system
> with coreutils 8.21 it is still working normally.

Not a bug, but a FAQ:
https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#How-do-I-remove-files-that-start-with-a-dash_003f

Most likely, he is running the command in a directory that contains a
filename starting with a dash, and both 'du -sh -- *' and 'du -sh ./*'
serve to suppress treating that leading dash as an invalid option name.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to