Subject: bug#20277: du wild card not working

From: Eric Blake <[email-masked]>
Date: Tue, 07 Apr 2015 20:19:49 -0600

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