GNU bug report logs - #6186
du in coreutils should add the -d flag as a shortcut to --max-depth

Previous Next

Package: coreutils;

Reported by: Jon Ringuette <jonr <at> scharp.org>

Date: Thu, 13 May 2010 18:49:01 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jon Ringuette <jonr <at> scharp.org>
To: Eric Blake <eblake <at> redhat.com>
Cc: 6186 <at> debbugs.gnu.org
Subject: bug#6186: du in coreutils should add the -d flag as a shortcut to	--max-depth
Date: Thu, 13 May 2010 12:43:40 -0700
[Message part 1 (text/plain, inline)]
Thank you for considering my request.   I'll put a patch together for submission.

-- 
Jon Ringuette
SCHARP/FHCRC
1100 Fairview ave. N LE-400
Office: Phone: 206.667.6378  Mobile: 206.659.5660  Fax: 206.667.4812
E-mail: jonr <at> scharp.org

CONFIDENTIALITY NOTICE: This e-mail message and any attachments may be confidential and privileged. If you are not intended to receive this
message, please notify the sender and destroy the message. Thank you.


On May 13, 2010, at 12:31 PM, Eric Blake wrote:

> On 05/13/2010 01:19 PM, Jon Ringuette wrote:
>> For example currently to say get the size of all the home directories
>> of users one would use : du /home -h --max-depth=1 .  It would make
>> life simpler and make going from FreeBSD systems to Linux systems
>> easier for people and scripts if the syntax : du /home -h -d 1 was
>> also supposed.
> 
> Prior practice is always a good reason to support changes like this.  It
> would be a very simple patch to du.c to convert --max-depth from
> long-option only to also having a short-option equivalent.  Would you
> like to try your hand at it first?
> 
> If not, I can probably get around to this in another day or two.
> 
> -- 
> Eric Blake   eblake <at> redhat.com    +1-801-349-2682
> Libvirt virtualization library http://libvirt.org
> 

[Message part 2 (text/html, inline)]

This bug report was last modified 15 years and 65 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.