bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20277: du wild card not working


From: Eric Blake
Subject: bug#20277: du wild card not working
Date: Tue, 07 Apr 2015 20:19:49 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

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

[Prev in Thread] Current Thread [Next in Thread]