[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6186: du in coreutils should add the -d flag as a shortcut to --max-
From: |
Jim Meyering |
Subject: |
bug#6186: du in coreutils should add the -d flag as a shortcut to --max-depth |
Date: |
Wed, 19 May 2010 09:17:25 +0200 |
Jim Meyering wrote:
...
>>From a1b74559f1b0dc60b866fa9c0220096fa4abffeb Mon Sep 17 00:00:00 2001
> From: Jim Meyering <address@hidden>
> Date: Tue, 18 May 2010 08:39:40 +0200
> Subject: [PATCH 1/2] tests: exercise du's --max-depth option
>
> * tests/Makefile.am (TESTS): Add du/max-depth.
> * tests/du/max-depth: New file.
...
>>From 1ccacf7a1b5b93f9e4c8ef562ceceab9726f8656 Mon Sep 17 00:00:00 2001
> From: Jon Ringuette <address@hidden>
> Date: Tue, 18 May 2010 08:26:11 +0200
> Subject: [PATCH 2/2] du: recognize -d N as equivalent to --max-depth=N
>
> * NEWS (New features): Mention it.
> * src/du.c (DEBUG_OPT): Remove. Use long-named ---debug instead.
> Commented out.
> (MAX_DEPTH_OPTION): Remove. Use 'd' instead.
> (main): Insert literal "d:"; remove DEBUG_OPT.
> * doc/coreutils.texi (du invocation): Add -d to indices.
> * tests/du/max-depth: Exercise -d, too.
> ---
> NEWS | 3 +++
> doc/coreutils.texi | 2 ++
> src/du.c | 15 +++++++--------
> tests/du/max-depth | 7 +++++++
> 4 files changed, 19 insertions(+), 8 deletions(-)
>
> diff --git a/NEWS b/NEWS
> index 5d7b81f..19436fe 100644
> --- a/NEWS
> +++ b/NEWS
> @@ -4,6 +4,9 @@ GNU coreutils NEWS -*-
> outline -*-
>
> ** New features
>
> + du recognizes -d N as equivalent to --max-depth=N, for compatibility
> + with FreeBSD.
I've pushed those two change sets.